]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
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 363564d9479cc56826440fb039e9942f09bfbd25..7db7bdff0b82d751fd3726a9132ac3a215d3327d 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 8fe623d5792b137ffe191c3a15b5dcce100fce7a..b3a612e03c02f0f8137cd7a6333750af9ad00f55 100644 (file)
@@ -28,6 +28,7 @@
 #include <stdbool.h>
 
 #ifdef _LIBC
+# define HAVE_LOCALTIME_R 0
 # include "../locale/localeinfo.h"
 #endif