From 78b0d99085e043890efa3a4f311bc3b5ffd43584 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 16 Apr 2011 13:10:11 +0200 Subject: time.c: move included header for fallback case Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/time.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libc/sysdeps/linux/common/time.c') diff --git a/libc/sysdeps/linux/common/time.c b/libc/sysdeps/linux/common/time.c index e13b44f4d..cd87fb331 100644 --- a/libc/sysdeps/linux/common/time.c +++ b/libc/sysdeps/linux/common/time.c @@ -9,12 +9,11 @@ #include #include -#include - #ifdef __NR_time _syscall_noerr1(time_t, time, time_t *, t) #else +# include time_t time(time_t * t) { time_t result; @@ -25,9 +24,8 @@ time_t time(time_t * t) */ gettimeofday(&tv, NULL); result = (time_t) tv.tv_sec; - if (t != NULL) { + if (t != NULL) *t = result; - } return result; } #endif -- cgit v1.2.3