If __NR_time is not defined, use sysdeps/unix/time.c implementation.
authordrepper <drepper>
Tue, 20 Dec 2005 14:57:37 +0000 (14:57 +0000)
committerdrepper <drepper>
Tue, 20 Dec 2005 14:57:37 +0000 (14:57 +0000)
sysdeps/unix/sysv/linux/time.c

index 1698c91..8366790 100644 (file)
 
 #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