From 35259015841308f7db2bc05a5664fcaab506e6ff Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 20 Dec 2005 15:11:40 +0000 Subject: * sysdeps/ia64/fpu/libm-test-ulps: Update for GCC 4.1 prerelease. * sysdeps/unix/sysv/linux/time.c: If __NR_time is not defined, use sysdeps/unix/time.c implementation. --- sysdeps/unix/sysv/linux/time.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv') 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 +#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 + +#endif -- cgit 1.4.1