(_REENTRANT): #define, as some hosts need this to declare localtime_r properly.
From Paul Eggert.
author |
Jim Meyering <jim@meyering.net> |
date |
Tue, 18 Nov 1997 03:32:00 +0000 |
parents |
1aab1ba35e01 |
children |
b1cf986e135f |
files |
lib/mktime.c lib/strftime.c |
diffstat |
2 files changed, 10 insertions(+), 0 deletions(-)
[+]
|
line diff
--- a/lib/mktime.c
+++ b/lib/mktime.c
@@ -27,6 +27,11 @@
# include <config.h>
#endif
+/* Some systems need this in order to declare localtime_r properly. */
+#ifndef _REENTRANT
+# define _REENTRANT 1
+#endif
+
#ifdef _LIBC
# define HAVE_LIMITS_H 1
# define HAVE_LOCALTIME_R 1
--- a/lib/strftime.c
+++ b/lib/strftime.c
@@ -22,6 +22,11 @@
# include <config.h>
#endif
+/* Some systems need this in order to declare localtime_r properly. */
+#ifndef _REENTRANT
+# define _REENTRANT 1
+#endif
+
#ifdef _LIBC
# define HAVE_LIMITS_H 1
# define HAVE_MBLEN 1