diff options
Diffstat (limited to 'time')
-rw-r--r-- | time/mktime.c | 4 | ||||
-rw-r--r-- | time/strftime.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/time/mktime.c b/time/mktime.c index f5a4f61f67..ce691c8451 100644 --- a/time/mktime.c +++ b/time/mktime.c @@ -26,8 +26,8 @@ #endif /* Some systems need this in order to declare localtime_r properly. */ -#ifndef _REENTRANT -# define _REENTRANT 1 +#ifndef __EXTENSIONS__ +# define __EXTENSIONS__ 1 #endif #ifdef _LIBC diff --git a/time/strftime.c b/time/strftime.c index ed029605d9..f724bf3e3b 100644 --- a/time/strftime.c +++ b/time/strftime.c @@ -21,8 +21,8 @@ #endif /* Some hosts need this in order to declare localtime_r properly. */ -#ifndef _REENTRANT -# define _REENTRANT 1 +#ifndef __EXTENSIONS__ +# define __EXTENSIONS__ 1 #endif #ifdef _LIBC @@ -547,7 +547,7 @@ my_strftime (s, maxsize, format, tp) len += strlen (f + len); break; } - + if (bytes == (size_t) -1) { len++; |