aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach/gettimeofday.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-04-14 09:14:45 +0000
committerUlrich Drepper <drepper@redhat.com>2002-04-14 09:14:45 +0000
commit29886719b5e20f210f9f0133ca381ca995dbc1e0 (patch)
treea87c9185f905db16f4259f3d1f89d8eae26cc346 /sysdeps/mach/gettimeofday.c
parentf9663bd4bb9a62951965e62c5e959f0044ea8596 (diff)
downloadglibc-29886719b5e20f210f9f0133ca381ca995dbc1e0.tar
glibc-29886719b5e20f210f9f0133ca381ca995dbc1e0.tar.gz
glibc-29886719b5e20f210f9f0133ca381ca995dbc1e0.tar.bz2
glibc-29886719b5e20f210f9f0133ca381ca995dbc1e0.zip
Update.
* include/sys/time.h: Declare __gettimeofday_internal and define __gettimeofday macro if not NOT_IN_libc. * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday. * sysdeps/mach/gettimeofday.c: Likewise. * sysdeps/posix/gettimeofday.c: Likewise. * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise. * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias. * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
Diffstat (limited to 'sysdeps/mach/gettimeofday.c')
-rw-r--r--sysdeps/mach/gettimeofday.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/mach/gettimeofday.c b/sysdeps/mach/gettimeofday.c
index 06268c9d04..7eb60c4b59 100644
--- a/sysdeps/mach/gettimeofday.c
+++ b/sysdeps/mach/gettimeofday.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,1992,1995,1996,1997,2001 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1992,1995-1997,2001,2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -21,6 +21,8 @@
#include <sys/time.h>
#include <mach.h>
+#undef __gettimeofday
+
/* Get the current time of day and timezone information,
putting it into *TV and *TZ. If TZ is NULL, *TZ is not filled.
Returns 0 on success, -1 on errors. */
@@ -42,4 +44,5 @@ __gettimeofday (tv, tz)
return 0;
}
+INTDEF(__gettimeofday)
weak_alias (__gettimeofday, gettimeofday)