patch-util_subst_c 676 B

123456789101112131415161718192021
  1. --- e2fsprogs-1.43.2.orig/util/subst.c 2016-06-07 07:01:19.000000000 +0200
  2. +++ e2fsprogs-1.43.2/util/subst.c 2016-09-19 13:21:04.000000000 +0200
  3. @@ -22,9 +22,7 @@
  4. #ifdef HAVE_SYS_TYPES_H
  5. #include <sys/types.h>
  6. #endif
  7. -#ifdef HAVE_SYS_STAT_H
  8. #include <sys/stat.h>
  9. -#endif
  10. #include <fcntl.h>
  11. #include <time.h>
  12. #include <utime.h>
  13. @@ -389,7 +387,7 @@ int main(int argc, char **argv)
  14. if (fd > 0) {
  15. /* save the original atime, if possible */
  16. if (fstat(fd, &stbuf) == 0) {
  17. -#if HAVE_STRUCT_STAT_ST_ATIM
  18. +#if defined(HAVE_STRUCT_STAT_ST_ATIM) && !defined(__APPLE__)
  19. tv[0].tv_sec = stbuf.st_atim.tv_sec;
  20. tv[0].tv_usec = stbuf.st_atim.tv_nsec / 1000;
  21. #else