aboutsummaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
Diffstat (limited to 'time')
-rw-r--r--time/mktime.c5
-rw-r--r--time/strftime.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/time/mktime.c b/time/mktime.c
index 406f55e..fcb3cc8 100644
--- a/time/mktime.c
+++ b/time/mktime.c
@@ -25,6 +25,11 @@
# include <config.h>
#endif
+/* Some hosts 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
diff --git a/time/strftime.c b/time/strftime.c
index 0ebc913..e09d0fd 100644
--- a/time/strftime.c
+++ b/time/strftime.c
@@ -20,6 +20,11 @@
# include <config.h>
#endif
+/* Some hosts 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