summaryrefslogtreecommitdiff
path: root/time/strftime.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/strftime.c')
-rw-r--r--time/strftime.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/time/strftime.c b/time/strftime.c
index 0ebc913090..e09d0fd26f 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