undefined reference to get_stat_atime
authorAlan Modra <amodra@gmail.com>
Fri, 16 Apr 2021 02:42:50 +0000 (12:12 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 16 Apr 2021 02:42:50 +0000 (12:12 +0930)
PR 27725
* rename.c (get_stat_atime, get_stat_mtime): Make static.
(get_stat_atime_ns, get_stat_mtime_ns): Likewise.

binutils/ChangeLog
binutils/rename.c

index 7390ba6db73650bddf9204cdbee9d24327749aaa..1eb42d18392dccd948dc5081a5214c7fa640824d 100644 (file)
@@ -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
index fe6019b26317cc5685f83a65b7e8b86f826063a1..544225d73f7e4393bd9d7953c103aec73e8c7aad 100644 (file)
@@ -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
This page took 0.037069 seconds and 4 git commands to generate.