Fix -Wundef warning for HAVE_LOCALTIME_R
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 10 Jul 2014 08:51:27 +0000 (14:21 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 10 Jul 2014 08:51:27 +0000 (14:21 +0530)
Define it to 0.  There is a gnulib copy for this, but it is out of
sync with our copy.

ChangeLog
time/strptime_l.c

index 363564d..7db7bdf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
+       * 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.
index 8fe623d..b3a612e 100644 (file)
@@ -28,6 +28,7 @@
 #include <stdbool.h>
 
 #ifdef _LIBC
+# define HAVE_LOCALTIME_R 0
 # include "../locale/localeinfo.h"
 #endif