chown: port to mingw and MSVC 14
[coreutils.git] / scripts / build-older-versions / coreutils-5.97-on-glibc-2.28.diff
blob58b53931f2d26ab3e93b74a7e73d0d58d7b87f62
1 diff -r -U3 coreutils-6.4/lib/utimens.c coreutils-6.4-patched/lib/utimens.c
2 --- coreutils-6.4/lib/utimens.c 2006-09-14 03:53:59.000000000 -0600
3 +++ coreutils-6.4-patched/lib/utimens.c 2019-08-01 19:09:08.228883163 -0600
4 @@ -73,7 +73,7 @@
5 Return 0 on success, -1 (setting errno) on failure. */
7 int
8 -futimens (int fd ATTRIBUTE_UNUSED,
9 +futimens_FOO (int fd ATTRIBUTE_UNUSED,
10 char const *file, struct timespec const timespec[2])
12 /* There's currently no interface to set file timestamps with
13 @@ -166,5 +166,5 @@
14 int
15 utimens (char const *file, struct timespec const timespec[2])
17 - return futimens (-1, file, timespec);
18 + return futimens_FOO (-1, file, timespec);
20 diff -r -U3 coreutils-6.4/lib/utimens.h coreutils-6.4-patched/lib/utimens.h
21 --- coreutils-6.4/lib/utimens.h 2004-11-23 14:39:48.000000000 -0700
22 +++ coreutils-6.4-patched/lib/utimens.h 2019-08-01 19:08:25.656313704 -0600
23 @@ -1,3 +1,3 @@
24 #include "timespec.h"
25 -int futimens (int, char const *, struct timespec const [2]);
26 +int futimens_FOO (int, char const *, struct timespec const [2]);
27 int utimens (char const *, struct timespec const [2]);
28 diff -r -U3 coreutils-6.4/src/copy.c coreutils-6.4-patched/src/copy.c
29 --- coreutils-6.4/src/copy.c 2006-10-22 10:54:15.000000000 -0600
30 +++ coreutils-6.4-patched/src/copy.c 2019-08-01 19:09:42.421340384 -0600
31 @@ -487,7 +487,7 @@
32 timespec[0] = get_stat_atime (src_sb);
33 timespec[1] = get_stat_mtime (src_sb);
35 - if (futimens (dest_desc, dst_name, timespec) != 0)
36 + if (futimens_FOO (dest_desc, dst_name, timespec) != 0)
38 error (0, errno, _("preserving times for %s"), quote (dst_name));
39 if (x->require_preserve)
40 diff -r -U3 coreutils-6.4/src/touch.c coreutils-6.4-patched/src/touch.c
41 --- coreutils-6.4/src/touch.c 2006-10-22 10:54:15.000000000 -0600
42 +++ coreutils-6.4-patched/src/touch.c 2019-08-01 19:09:34.685236947 -0600
43 @@ -182,7 +182,7 @@
44 t = timespec;
47 - ok = (futimens (fd, (fd == STDOUT_FILENO ? NULL : file), t) == 0);
48 + ok = (futimens_FOO (fd, (fd == STDOUT_FILENO ? NULL : file), t) == 0);
50 if (fd == STDIN_FILENO)