summaryrefslogtreecommitdiff
path: root/package/e2fsprogs/patches/patch-util_subst_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2014-07-08 21:23:24 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2014-07-08 21:23:24 +0200
commitae85e87f5c179ecfaa825351990b3dfd19165a85 (patch)
treedb010131420129ec8882035e5a4d752f12c2e05a /package/e2fsprogs/patches/patch-util_subst_c
parent432acb8129ffc1d513f47241a2101d202180b465 (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_c11
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