diff options
Diffstat (limited to 'time')
-rw-r--r-- | time/mktime.c | 5 | ||||
-rw-r--r-- | time/strftime.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/time/mktime.c b/time/mktime.c index 406f55e170..fcb3cc8f95 100644 --- a/time/mktime.c +++ b/time/mktime.c @@ -25,6 +25,11 @@ # include <config.h> #endif +/* Some hosts 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/time/strftime.c b/time/strftime.c index 0ebc913090..e09d0fd26f 100644 --- a/time/strftime.c +++ b/time/strftime.c @@ -20,6 +20,11 @@ # include <config.h> #endif +/* Some hosts 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 |