summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/utimes.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/utimes.c')
-rw-r--r--libc/sysdeps/linux/common/utimes.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/utimes.c b/libc/sysdeps/linux/common/utimes.c
index ac9aff53d..5d6f1689c 100644
--- a/libc/sysdeps/linux/common/utimes.c
+++ b/libc/sysdeps/linux/common/utimes.c
@@ -12,7 +12,7 @@
#ifdef __NR_utimes
_syscall2(int, utimes, const char *, file, const struct timeval *, tvp)
-#else
+#elif defined __NR_utime
# define __need_NULL
# include <stddef.h>
# include <utime.h>
@@ -31,4 +31,6 @@ int utimes(const char *file, const struct timeval tvp[2])
return utime(file, times);
}
#endif
+#if defined __NR_utimes || defined __NR_utime
libc_hidden_def(utimes)
+#endif