summary refs log tree commit diff
path: root/time/mktime.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/mktime.c')
-rw-r--r--time/mktime.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/time/mktime.c b/time/mktime.c
index 406f55e170..fcb3cc8f95 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