[PATCH] Fix -Wundef warning for HAVE_LOCALTIME_R
Siddhesh Poyarekar
siddhesh@redhat.com
Wed Jul 9 11:05:00 GMT 2014
Define HAVE_LOCALTIME_R to 0. There is again a gnulib copy for this
in lib/strptime.c, but it is out of sync with our copy.
Siddhesh
* time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
---
time/strptime_l.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/time/strptime_l.c b/time/strptime_l.c
index 8fe623d..02680d9 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
--
1.9.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140709/a27a527e/attachment.sig>
More information about the Libc-alpha
mailing list