summary refs log tree commit diff
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2014-07-10 14:21:27 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2014-07-10 14:21:27 +0530
commit180e0e4b29e4950cd411144c7b9dab1f850853d9 (patch)
tree7bb883df3c9d227a1224fa95da72a2ab5452c502
parentd22f1fe2f369a273533e50d757c4590adf147ef1 (diff)
downloadglibc-180e0e4b29e4950cd411144c7b9dab1f850853d9.tar.gz
glibc-180e0e4b29e4950cd411144c7b9dab1f850853d9.tar.xz
glibc-180e0e4b29e4950cd411144c7b9dab1f850853d9.zip
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.
-rw-r--r--ChangeLog2
-rw-r--r--time/strptime_l.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 363564d947..7db7bdff0b 100644
--- 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.
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 <stdbool.h>
 
 #ifdef _LIBC
+# define HAVE_LOCALTIME_R 0
 # include "../locale/localeinfo.h"
 #endif