about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/time.c')
-rw-r--r--sysdeps/unix/sysv/linux/time.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/time.c b/sysdeps/unix/sysv/linux/time.c
index 1698c91d7d..83667906dd 100644
--- a/sysdeps/unix/sysv/linux/time.c
+++ b/sysdeps/unix/sysv/linux/time.c
@@ -21,9 +21,11 @@
 
 #include <sysdep.h>
 
+#ifdef __NR_time
 
 time_t
-time (time_t *t)
+time (t)
+     time_t *t;
 {
   INTERNAL_SYSCALL_DECL (err);
   time_t res = INTERNAL_SYSCALL (time, err, 1, NULL);
@@ -33,3 +35,9 @@ time (time_t *t)
   return res;
 }
 libc_hidden_def (time)
+
+#else
+
+# include <sysdeps/unix/time.c>
+
+#endif