projects
/
gnulib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8a779b
)
(_REENTRANT): #define, as some hosts need this to declare localtime_r properly.
author
Jim Meyering
<jim@meyering.net>
Tue, 18 Nov 1997 03:32:00 +0000
(
03:32
+0000)
committer
Jim Meyering
<jim@meyering.net>
Tue, 18 Nov 1997 03:32:00 +0000
(
03:32
+0000)
From Paul Eggert.
lib/mktime.c
patch
|
blob
|
history
lib/strftime.c
patch
|
blob
|
history
diff --git
a/lib/mktime.c
b/lib/mktime.c
index
f759c29
..
952befe
100644
(file)
--- a/
lib/mktime.c
+++ b/
lib/mktime.c
@@
-27,6
+27,11
@@
# include <config.h>
#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
b084851
..
5201a87
100644
(file)
--- a/
lib/strftime.c
+++ b/
lib/strftime.c
@@
-22,6
+22,11
@@
# include <config.h>
#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