From d9b708938d95c3c31ba1683b4bdd1abbe97930e5 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 deletions(-) diff --git a/ChangeLog b/ChangeLog index 42145a5..450aee0 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-17 Eric Blake manywarnings: add more warnings diff --git a/lib/gettimeofday.c b/lib/gettimeofday.c index 14304fa..3c4e3a2 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 -- 1.6.6.1