diff options
author | Alan Modra <amodra@gmail.com> | 2021-04-16 12:12:50 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-04-16 12:12:50 +0930 |
commit | ad7c46164f2d558be9f34c1902430259eb00e62b (patch) | |
tree | d195369a92643191d5f7edece9cefc02ecead3d6 | |
parent | 971cd33fc64cc91f7f0497310f3e8ec0886595e9 (diff) | |
download | gdb-ad7c46164f2d558be9f34c1902430259eb00e62b.zip gdb-ad7c46164f2d558be9f34c1902430259eb00e62b.tar.gz gdb-ad7c46164f2d558be9f34c1902430259eb00e62b.tar.bz2 |
undefined reference to get_stat_atime
PR 27725
* rename.c (get_stat_atime, get_stat_mtime): Make static.
(get_stat_atime_ns, get_stat_mtime_ns): Likewise.
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/rename.c | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 7390ba6..1eb42d1 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2021-04-16 Alan Modra <amodra@gmail.com> + + PR 27725 + * rename.c (get_stat_atime, get_stat_mtime): Make static. + (get_stat_atime_ns, get_stat_mtime_ns): Likewise. + 2021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi> PR 27725 diff --git a/binutils/rename.c b/binutils/rename.c index fe6019b..544225d 100644 --- a/binutils/rename.c +++ b/binutils/rename.c @@ -103,7 +103,7 @@ simple_copy (int fromfd, const char *to, #endif /* Return the nanosecond component of *ST's access time. */ -inline long int +static inline long int get_stat_atime_ns (struct stat const *st ATTRIBUTE_UNUSED) { # if defined STAT_TIMESPEC @@ -116,7 +116,7 @@ get_stat_atime_ns (struct stat const *st ATTRIBUTE_UNUSED) } /* Return the nanosecond component of *ST's data modification time. */ -inline long int +static inline long int get_stat_mtime_ns (struct stat const *st ATTRIBUTE_UNUSED) { # if defined STAT_TIMESPEC @@ -129,7 +129,7 @@ get_stat_mtime_ns (struct stat const *st ATTRIBUTE_UNUSED) } /* Return *ST's access time. */ -inline struct timespec +static inline struct timespec get_stat_atime (struct stat const *st) { #ifdef STAT_TIMESPEC @@ -143,7 +143,7 @@ get_stat_atime (struct stat const *st) } /* Return *ST's data modification time. */ -inline struct timespec +static inline struct timespec get_stat_mtime (struct stat const *st) { #ifdef STAT_TIMESPEC |