mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 08:31:59 +00:00
77a46300fa
svn path=/nixpkgs/trunk/; revision=9441
43 lines
1.5 KiB
Diff
43 lines
1.5 KiB
Diff
now hat glibc-2.6 declares futimens.
|
|
http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00089.html
|
|
|
|
diff -ru cpio-2.7.orig/lib/utimens.c cpio-2.7/lib/utimens.c
|
|
--- cpio-2.7.orig/lib/utimens.c 2007-05-20 21:23:57.000000000 +0900
|
|
+++ cpio-2.7/lib/utimens.c 2007-05-21 08:40:22.000000000 +0900
|
|
@@ -73,7 +73,7 @@
|
|
Return 0 on success, -1 (setting errno) on failure. */
|
|
|
|
int
|
|
-futimens (int fd ATTRIBUTE_UNUSED,
|
|
+gl_futimens (int fd ATTRIBUTE_UNUSED,
|
|
char const *file, struct timespec const timespec[2])
|
|
{
|
|
/* There's currently no interface to set file timestamps with
|
|
@@ -166,5 +166,5 @@
|
|
int
|
|
utimens (char const *file, struct timespec const timespec[2])
|
|
{
|
|
- return futimens (-1, file, timespec);
|
|
+ return gl_futimens (-1, file, timespec);
|
|
}
|
|
diff -ru cpio-2.7.orig/lib/utimens.h cpio-2.7/lib/utimens.h
|
|
--- cpio-2.7.orig/lib/utimens.h 2007-05-20 21:23:57.000000000 +0900
|
|
+++ cpio-2.7/lib/utimens.h 2007-05-21 08:39:57.000000000 +0900
|
|
@@ -1,3 +1,3 @@
|
|
#include "timespec.h"
|
|
-int futimens (int, char const *, struct timespec const [2]);
|
|
+int gl_futimens (int, char const *, struct timespec const [2]);
|
|
int utimens (char const *, struct timespec const [2]);
|
|
diff -ur gzip-1.3.12.orig/gzip.c gzip-1.3.12/gzip.c
|
|
--- gzip-1.3.12.orig/gzip.c 2007-05-21 09:12:46.000000000 +0900
|
|
+++ gzip-1.3.12/gzip.c 2007-05-21 09:13:14.000000000 +0900
|
|
@@ -1637,7 +1637,7 @@
|
|
}
|
|
}
|
|
|
|
- if (futimens (ofd, ofname, timespec) != 0)
|
|
+ if (gl_futimens (ofd, ofname, timespec) != 0)
|
|
{
|
|
int e = errno;
|
|
WARN ((stderr, "%s: ", program_name));
|