projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
010e444
)
PR28156, rename.c doesn't compile with MinGW
author
Alan Modra
<amodra@gmail.com>
Wed, 4 Aug 2021 05:14:08 +0000
(14:44 +0930)
committer
Alan Modra
<amodra@gmail.com>
Wed, 4 Aug 2021 05:14:08 +0000
(14:44 +0930)
Guard against lack of struct timespec definition.
PR 28156
* rename.c (get_stat_atime, get_stat_mtime): Don't compile
unless HAVE_UTIMENSAT is defined.
binutils/rename.c
patch
|
blob
|
history
diff --git
a/binutils/rename.c
b/binutils/rename.c
index 8826917c18c747c5d68e107c95b1ab0b79a62418..48ae301480676d748200c5ff824840a9fb3be441 100644
(file)
--- a/
binutils/rename.c
+++ b/
binutils/rename.c
@@
-131,6
+131,7
@@
get_stat_mtime_ns (struct stat const *st ATTRIBUTE_UNUSED)
# endif
}
+#if defined HAVE_UTIMENSAT
/* Return *ST's access time. */
static inline struct timespec
get_stat_atime (struct stat const *st)
@@
-158,6
+159,7
@@
get_stat_mtime (struct stat const *st)
return t;
#endif
}
+#endif
/* End FIXME. */
/* Set the times of the file DESTINATION to be the same as those in