gettimeofday: provide correct function
authorEric Blake <eblake@redhat.com>
Tue, 23 Feb 2010 15:22:04 +0000 (08:22 -0700)
committerEric Blake <eblake@redhat.com>
Tue, 23 Feb 2010 15:45:30 +0000 (08:45 -0700)
* lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
when replacement is declared, otherwise provide gettimeofday.
Reported by Michael Goffioul.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/gettimeofday.c

index 83ba5a9..9f03e3f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-02-23  Eric Blake  <eblake@redhat.com>
+
+       gettimeofday: provide correct function
+       * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
+       when replacement is declared, otherwise provide gettimeofday.
+       Reported by Michael Goffioul.
+
 2010-02-23  Jim Meyering  <meyering@redhat.com>
 
        lib-ignore: relax license to "unlimited", not LGPLv2+
index 14304fa..3c4e3a2 100644 (file)
@@ -100,7 +100,7 @@ rpl_tzset (void)
    causes problems.  */
 
 int
-rpl_gettimeofday (struct timeval *restrict tv, void *restrict tz)
+gettimeofday (struct timeval *restrict tv, void *restrict tz)
 {
 #undef gettimeofday
 #if HAVE_GETTIMEOFDAY