new gcc snapshot
[dottout.git] / net-im / emesene / files / sys-apps / coreutils / files / gnulib-futimens-rename.patch
blobdfb5023b4b3c0e59d67e3ba01a2969fe705a9cb0
1 http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00089.html
3 2007-05-19 Jim Meyering <jim@meyering.net>
5 * lib/utimens.c (gl_futimens): Rename from futimens,
6 now that glibc-2.6 declares futimens.
7 * lib/utimens.h: Likewise.
9 diff --git a/lib/utimens.c b/lib/utimens.c
10 index 71bc510..7e3175a 100644
11 --- a/lib/utimens.c
12 +++ b/lib/utimens.c
13 @@ -75,8 +75,8 @@ struct utimbuf
14 Return 0 on success, -1 (setting errno) on failure. */
16 int
17 -futimens (int fd ATTRIBUTE_UNUSED,
18 - char const *file, struct timespec const timespec[2])
19 +gl_futimens (int fd ATTRIBUTE_UNUSED,
20 + char const *file, struct timespec const timespec[2])
22 /* Some Linux-based NFS clients are buggy, and mishandle time stamps
23 of files in NFS file systems in some cases. We have no
24 @@ -185,5 +185,5 @@ futimens (int fd ATTRIBUTE_UNUSED,
25 int
26 utimens (char const *file, struct timespec const timespec[2])
28 - return futimens (-1, file, timespec);
29 + return gl_futimens (-1, file, timespec);
31 diff --git a/lib/utimens.h b/lib/utimens.h
32 index 0097aaa..169521d 100644
33 --- a/lib/utimens.h
34 +++ b/lib/utimens.h
35 @@ -1,3 +1,3 @@
36 #include <time.h>
37 -int futimens (int, char const *, struct timespec const [2]);
38 +int gl_futimens (int, char const *, struct timespec const [2]);
39 int utimens (char const *, struct timespec const [2]);