diff options
author | Jim Meyering <jim@meyering.net> | 1997-11-18 03:32:00 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-11-18 03:32:00 +0000 |
commit | 9ed80c01401aa2d10110f03b072228f297ee9600 (patch) | |
tree | f7c32c5d327a707a003dab13ab947b5a864e3e76 | |
parent | 6106d5a733e8c91a6fd612c9123614906bdecf39 (diff) | |
download | coreutils-9ed80c01401aa2d10110f03b072228f297ee9600.tar.xz |
(_REENTRANT): #define, as some hosts need this to declare localtime_r properly.
From Paul Eggert.
-rw-r--r-- | lib/mktime.c | 5 | ||||
-rw-r--r-- | lib/strftime.c | 5 |
2 files changed, 10 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 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 |