summaryrefslogtreecommitdiff
path: root/lib/strftime.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-11-18 03:32:00 +0000
committerJim Meyering <jim@meyering.net>1997-11-18 03:32:00 +0000
commit9ed80c01401aa2d10110f03b072228f297ee9600 (patch)
treef7c32c5d327a707a003dab13ab947b5a864e3e76 /lib/strftime.c
parent6106d5a733e8c91a6fd612c9123614906bdecf39 (diff)
downloadcoreutils-9ed80c01401aa2d10110f03b072228f297ee9600.tar.xz
(_REENTRANT): #define, as some hosts need this to declare localtime_r properly.
From Paul Eggert.
Diffstat (limited to 'lib/strftime.c')
-rw-r--r--lib/strftime.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/strftime.c b/lib/strftime.c
index b084851a4..5201a87e2 100644
--- 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