CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Imported core-cross ports from 2.5
[crossrootfs.git] / gzip / gzip-futimens.patch
1 diff -Nru gzip-1.3.12.orig/gzip.c gzip-1.3.12/gzip.c
2 --- gzip-1.3.12.orig/gzip.c 2007-08-16 11:50:42.747692170 +0200
3 +++ gzip-1.3.12/gzip.c 2007-08-16 11:51:38.754599471 +0200
4 @@ -1637,7 +1637,7 @@
5 }
6 }
7
8 - if (futimens (ofd, ofname, timespec) != 0)
9 + if (gl_futimens (ofd, ofname, timespec) != 0)
10 {
11 int e = errno;
12 WARN ((stderr, "%s: ", program_name));
13 diff -Nru gzip-1.3.12.orig/lib/utimens.c gzip-1.3.12/lib/utimens.c
14 --- gzip-1.3.12.orig/lib/utimens.c 2007-08-16 11:50:42.757691618 +0200
15 +++ gzip-1.3.12/lib/utimens.c 2007-08-16 11:50:56.646924655 +0200
16 @@ -75,8 +75,8 @@
17 Return 0 on success, -1 (setting errno) on failure. */
18
19 int
20 -futimens (int fd ATTRIBUTE_UNUSED,
21 - char const *file, struct timespec const timespec[2])
22 +gl_futimens (int fd ATTRIBUTE_UNUSED,
23 + char const *file, struct timespec const timespec[2])
24 {
25 /* Some Linux-based NFS clients are buggy, and mishandle time stamps
26 of files in NFS file systems in some cases. We have no
27 @@ -185,5 +185,5 @@
28 int
29 utimens (char const *file, struct timespec const timespec[2])
30 {
31 - return futimens (-1, file, timespec);
32 + return gl_futimens (-1, file, timespec);
33 }
34 diff -Nru gzip-1.3.12.orig/lib/utimens.h gzip-1.3.12/lib/utimens.h
35 --- gzip-1.3.12.orig/lib/utimens.h 2007-08-16 11:50:42.767691065 +0200
36 +++ gzip-1.3.12/lib/utimens.h 2007-08-16 11:56:49.997243976 +0200
37 @@ -1,3 +1,3 @@
38 #include <time.h>
39 -int futimens (int, char const *, struct timespec const [2]);
40 +int gl_futimens (int, char const *, struct timespec const [2]);
41 int utimens (char const *, struct timespec const [2]);