From 0a8a65e0a060c05371214dc0d9f75381d167952c Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 8 Dec 2005 14:20:28 +0000 Subject: Use __gettimeofday --- libc/sysdeps/linux/common/clock_gettime.c | 2 ++ libc/sysdeps/linux/common/dl-osinfo.h | 2 ++ libc/sysdeps/linux/common/gettimeofday.c | 1 - libc/sysdeps/linux/common/time.c | 2 ++ libc/sysdeps/linux/common/utime.c | 1 + 5 files changed, 7 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux') diff --git a/libc/sysdeps/linux/common/clock_gettime.c b/libc/sysdeps/linux/common/clock_gettime.c index d6369681d..33863a828 100644 --- a/libc/sysdeps/linux/common/clock_gettime.c +++ b/libc/sysdeps/linux/common/clock_gettime.c @@ -20,6 +20,8 @@ * */ +#define gettimeofday __gettimeofday + #define _GNU_SOURCE #include "syscalls.h" #include diff --git a/libc/sysdeps/linux/common/dl-osinfo.h b/libc/sysdeps/linux/common/dl-osinfo.h index 7998b08a4..ffb754321 100644 --- a/libc/sysdeps/linux/common/dl-osinfo.h +++ b/libc/sysdeps/linux/common/dl-osinfo.h @@ -7,6 +7,8 @@ #ifndef _DL_OSINFO_H #define _DL_OSINFO_H 1 +#define gettimeofday __gettimeofday + #include #ifdef __UCLIBC_HAS_SSP__ diff --git a/libc/sysdeps/linux/common/gettimeofday.c b/libc/sysdeps/linux/common/gettimeofday.c index 478a4e84d..6c2613f01 100644 --- a/libc/sysdeps/linux/common/gettimeofday.c +++ b/libc/sysdeps/linux/common/gettimeofday.c @@ -9,7 +9,6 @@ #include "syscalls.h" #include -#undef gettimeofday #define __NR___gettimeofday __NR_gettimeofday attribute_hidden _syscall2(int, __gettimeofday, struct timeval *, tv, struct timezone *, tz); strong_alias(__gettimeofday,gettimeofday) diff --git a/libc/sysdeps/linux/common/time.c b/libc/sysdeps/linux/common/time.c index 506850ff9..02ebd5570 100644 --- a/libc/sysdeps/linux/common/time.c +++ b/libc/sysdeps/linux/common/time.c @@ -7,6 +7,8 @@ * GNU Library General Public License (LGPL) version 2 or later. */ +#define gettimeofday __gettimeofday + #include "syscalls.h" #include #include diff --git a/libc/sysdeps/linux/common/utime.c b/libc/sysdeps/linux/common/utime.c index 5515488cd..8087863f7 100644 --- a/libc/sysdeps/linux/common/utime.c +++ b/libc/sysdeps/linux/common/utime.c @@ -8,6 +8,7 @@ */ #define utimes __utimes +#define gettimeofday __gettimeofday #include "syscalls.h" #include -- cgit v1.2.3