mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +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.
This commit is contained in:
@ -131,6 +131,7 @@ get_stat_mtime_ns (struct stat const *st ATTRIBUTE_UNUSED)
|
|||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined HAVE_UTIMENSAT
|
||||||
/* Return *ST's access time. */
|
/* Return *ST's access time. */
|
||||||
static inline struct timespec
|
static inline struct timespec
|
||||||
get_stat_atime (struct stat const *st)
|
get_stat_atime (struct stat const *st)
|
||||||
@ -158,6 +159,7 @@ get_stat_mtime (struct stat const *st)
|
|||||||
return t;
|
return t;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
/* End FIXME. */
|
/* End FIXME. */
|
||||||
|
|
||||||
/* Set the times of the file DESTINATION to be the same as those in
|
/* Set the times of the file DESTINATION to be the same as those in
|
||||||
|
Reference in New Issue
Block a user