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