mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 02:24:46 +08:00
PR28156, rename.c doesn't compile with MinGW
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.
(cherry picked from commit 47fcfcbadc
)
This commit is contained in:
parent
038f80914f
commit
2e8e5a93a1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user