patch-util_subst_c 489 B

1234567891011
  1. --- e2fsprogs-1.42.10.orig/util/subst.c 2014-05-15 19:04:08.000000000 +0200
  2. +++ e2fsprogs-1.42.10/util/subst.c 2014-07-08 21:18:41.000000000 +0200
  3. @@ -358,7 +358,7 @@ int main(int argc, char **argv)
  4. if (fd > 0) {
  5. /* save the original atime, if possible */
  6. if (fstat(fd, &stbuf) == 0) {
  7. -#if HAVE_STRUCT_STAT_ST_ATIM
  8. +#if defined(HAVE_STRUCT_STAT_ST_ATIM) && !defined(__APPLE__)
  9. tv[0].tv_sec = stbuf.st_atim.tv_sec;
  10. tv[0].tv_usec = stbuf.st_atim.tv_nsec / 1000;
  11. #else