aboutsummaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
Diffstat (limited to 'time')
-rw-r--r--time/mktime.c4
-rw-r--r--time/strftime.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/time/mktime.c b/time/mktime.c
index f5a4f61..ce691c8 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 ed02960..f724bf3 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++;