diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/mktime.c | 5 | ||||
| -rw-r--r-- | src/strftime.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/mktime.c b/src/mktime.c index f759c29bb96..a6e2756aebe 100644 --- a/src/mktime.c +++ b/src/mktime.c | |||
| @@ -27,6 +27,11 @@ | |||
| 27 | # include <config.h> | 27 | # include <config.h> |
| 28 | #endif | 28 | #endif |
| 29 | 29 | ||
| 30 | /* Some hosts need this in order to declare localtime_r properly. */ | ||
| 31 | #ifndef _REENTRANT | ||
| 32 | # define _REENTRANT 1 | ||
| 33 | #endif | ||
| 34 | |||
| 30 | #ifdef _LIBC | 35 | #ifdef _LIBC |
| 31 | # define HAVE_LIMITS_H 1 | 36 | # define HAVE_LIMITS_H 1 |
| 32 | # define HAVE_LOCALTIME_R 1 | 37 | # define HAVE_LOCALTIME_R 1 |
diff --git a/src/strftime.c b/src/strftime.c index b084851a451..90b21471904 100644 --- a/src/strftime.c +++ b/src/strftime.c | |||
| @@ -22,6 +22,11 @@ | |||
| 22 | # include <config.h> | 22 | # include <config.h> |
| 23 | #endif | 23 | #endif |
| 24 | 24 | ||
| 25 | /* Some hosts need this in order to declare localtime_r properly. */ | ||
| 26 | #ifndef _REENTRANT | ||
| 27 | # define _REENTRANT 1 | ||
| 28 | #endif | ||
| 29 | |||
| 25 | #ifdef _LIBC | 30 | #ifdef _LIBC |
| 26 | # define HAVE_LIMITS_H 1 | 31 | # define HAVE_LIMITS_H 1 |
| 27 | # define HAVE_MBLEN 1 | 32 | # define HAVE_MBLEN 1 |