From: Jim Meyering Date: Tue, 18 Nov 1997 03:32:00 +0000 (+0000) Subject: (_REENTRANT): #define, as some hosts need this to declare localtime_r properly. X-Git-Tag: TEXTUTILS-1_22c~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ed80c01401aa2d10110f03b072228f297ee9600;p=thirdparty%2Fcoreutils.git (_REENTRANT): #define, as some hosts need this to declare localtime_r properly. From Paul Eggert. --- diff --git a/lib/mktime.c b/lib/mktime.c index f759c29bb9..952befe935 100644 --- a/lib/mktime.c +++ b/lib/mktime.c @@ -27,6 +27,11 @@ # include #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 b084851a45..5201a87e26 100644 --- a/lib/strftime.c +++ b/lib/strftime.c @@ -22,6 +22,11 @@ # include #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