From 7a39fa84206d8d0bb39640895fa48a1c29631b4b Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 23 Feb 2010 08:22:04 -0700 Subject: [PATCH] gettimeofday: provide correct function * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only when replacement is declared, otherwise provide gettimeofday. Reported by Michael Goffioul. Signed-off-by: Eric Blake --- ChangeLog | 7 +++++++ lib/gettimeofday.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 83ba5a9970..9f03e3fc65 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-02-23 Eric Blake + + 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 lib-ignore: relax license to "unlimited", not LGPLv2+ diff --git a/lib/gettimeofday.c b/lib/gettimeofday.c index 14304fa385..3c4e3a2811 100644 --- a/lib/gettimeofday.c +++ b/lib/gettimeofday.c @@ -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 -- 2.30.2