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-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd396561f6e42cfb5c750b19cca61494b92569e4;p=pspp (_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