summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/utimes.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-04-16 14:24:38 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:40 +0200
commit917176e71ef901297e420bbb0db99be5e8100fc3 (patch)
tree9e55d42ae33445f8f0d44995cac5fedea8f51809 /libc/sysdeps/linux/common/utimes.c
parent4dcfe3b2699fc2bb360ece726896de798d077694 (diff)
utime[s]: avoid circular dependency
utime.c: fix a cast, tv_sec is of type time_t Add stub for utimes. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
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