summaryrefslogtreecommitdiff
path: root/package/e2fsprogs/patches/patch-util_subst_c
blob: 2874794d6885375e207a324c01f498a6290df422 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- e2fsprogs-1.42.12.orig/util/subst.c	2014-08-02 22:26:22.000000000 +0200
+++ e2fsprogs-1.42.12/util/subst.c	2015-02-24 13:53:42.034808695 +0100
@@ -363,7 +363,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