diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2014-07-08 21:23:24 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2014-07-08 21:23:24 +0200 |
commit | ae85e87f5c179ecfaa825351990b3dfd19165a85 (patch) | |
tree | db010131420129ec8882035e5a4d752f12c2e05a /package/e2fsprogs/patches/patch-util_subst_c | |
parent | 432acb8129ffc1d513f47241a2101d202180b465 (diff) |
fix cross-compile on Darwin
Diffstat (limited to 'package/e2fsprogs/patches/patch-util_subst_c')
-rw-r--r-- | package/e2fsprogs/patches/patch-util_subst_c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/package/e2fsprogs/patches/patch-util_subst_c b/package/e2fsprogs/patches/patch-util_subst_c new file mode 100644 index 000000000..601f7fa92 --- /dev/null +++ b/package/e2fsprogs/patches/patch-util_subst_c @@ -0,0 +1,11 @@ +--- e2fsprogs-1.42.10.orig/util/subst.c 2014-05-15 19:04:08.000000000 +0200 ++++ e2fsprogs-1.42.10/util/subst.c 2014-07-08 21:18:41.000000000 +0200 +@@ -358,7 +358,7 @@ int main(int argc, char **argv) + if (fd > 0) { + /* save the original atime, if possible */ + if (fstat(fd, &stbuf) == 0) { +-#if HAVE_STRUCT_STAT_ST_ATIM ++#if defined(HAVE_STRUCT_STAT_ST_ATIM) && !defined(__APPLE__) + tv[0].tv_sec = stbuf.st_atim.tv_sec; + tv[0].tv_usec = stbuf.st_atim.tv_nsec / 1000; + #else |