summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-08 14:20:28 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-08 14:20:28 +0000
commit0a8a65e0a060c05371214dc0d9f75381d167952c (patch)
tree81be0e61995683ca3f49fa579cd8c5c547842078 /libc/sysdeps
parent942357a798dd789d081616ce696f1221f7d27dd2 (diff)
Use __gettimeofday
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/common/clock_gettime.c2
-rw-r--r--libc/sysdeps/linux/common/dl-osinfo.h2
-rw-r--r--libc/sysdeps/linux/common/gettimeofday.c1
-rw-r--r--libc/sysdeps/linux/common/time.c2
-rw-r--r--libc/sysdeps/linux/common/utime.c1
5 files changed, 7 insertions, 1 deletions
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 <time.h>
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 <features.h>
#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 <sys/time.h>
-#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 <time.h>
#include <sys/time.h>
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 <utime.h>