From 180e0e4b29e4950cd411144c7b9dab1f850853d9 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Thu, 10 Jul 2014 14:21:27 +0530 Subject: [PATCH] Fix -Wundef warning for HAVE_LOCALTIME_R Define it to 0. There is a gnulib copy for this, but it is out of sync with our copy. --- ChangeLog | 2 ++ time/strptime_l.c | 1 + 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 363564d947..7db7bdff0b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2014-07-10 Siddhesh Poyarekar + * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R. + * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME. * io/ftw.c: Include sys/param.h unconditionally. diff --git a/time/strptime_l.c b/time/strptime_l.c index 8fe623d579..b3a612e03c 100644 --- a/time/strptime_l.c +++ b/time/strptime_l.c @@ -28,6 +28,7 @@ #include #ifdef _LIBC +# define HAVE_LOCALTIME_R 0 # include "../locale/localeinfo.h" #endif