gzip-1.3.12-rename-futimens.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ---
  2. gzip.c | 2 +-
  3. lib/utimens.c | 4 ++--
  4. lib/utimens.h | 2 +-
  5. 3 files changed, 4 insertions(+), 4 deletions(-)
  6. Index: gzip-1.3.12/gzip.c
  7. ===================================================================
  8. --- gzip-1.3.12.orig/gzip.c
  9. +++ gzip-1.3.12/gzip.c
  10. @@ -1637,7 +1637,7 @@
  11. }
  12. }
  13. - if (futimens (ofd, ofname, timespec) != 0)
  14. + if (gz_futimens (ofd, ofname, timespec) != 0)
  15. {
  16. int e = errno;
  17. WARN ((stderr, "%s: ", program_name));
  18. Index: gzip-1.3.12/lib/utimens.c
  19. ===================================================================
  20. --- gzip-1.3.12.orig/lib/utimens.c
  21. +++ gzip-1.3.12/lib/utimens.c
  22. @@ -75,7 +75,7 @@
  23. Return 0 on success, -1 (setting errno) on failure. */
  24. int
  25. -futimens (int fd ATTRIBUTE_UNUSED,
  26. +gz_futimens (int fd ATTRIBUTE_UNUSED,
  27. char const *file, struct timespec const timespec[2])
  28. {
  29. /* Some Linux-based NFS clients are buggy, and mishandle time stamps
  30. @@ -185,5 +185,5 @@
  31. int
  32. utimens (char const *file, struct timespec const timespec[2])
  33. {
  34. - return futimens (-1, file, timespec);
  35. + return gz_futimens (-1, file, timespec);
  36. }
  37. Index: gzip-1.3.12/lib/utimens.h
  38. ===================================================================
  39. --- gzip-1.3.12.orig/lib/utimens.h
  40. +++ gzip-1.3.12/lib/utimens.h
  41. @@ -1,3 +1,3 @@
  42. #include <time.h>
  43. -int futimens (int, char const *, struct timespec const [2]);
  44. +int gz_futimens (int, char const *, struct timespec const [2]);
  45. int utimens (char const *, struct timespec const [2]);