From 29886719b5e20f210f9f0133ca381ca995dbc1e0 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 14 Apr 2002 09:14:45 +0000 Subject: 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. --- sysdeps/generic/gettimeofday.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sysdeps/generic') diff --git a/sysdeps/generic/gettimeofday.c b/sysdeps/generic/gettimeofday.c index 03e705db7c..f4a170c9e7 100644 --- a/sysdeps/generic/gettimeofday.c +++ b/sysdeps/generic/gettimeofday.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995, 1996, 1997, 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 @@ -19,6 +19,8 @@ #include #include +#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. */ @@ -32,5 +34,6 @@ __gettimeofday (tv, tz) } stub_warning (gettimeofday) +INTDEF(__gettimeofday) weak_alias (__gettimeofday, gettimeofday) #include -- cgit 1.4.1