projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5b368f
)
Some systems require <unistd.h> to be included before <time.h> for
author
drepper
<drepper>
Fri, 16 Oct 1998 18:53:25 +0000
(18:53 +0000)
committer
drepper
<drepper>
Fri, 16 Oct 1998 18:53:25 +0000
(18:53 +0000)
localtime_r to be declared properly.
time/strftime.c
patch
|
blob
|
history
diff --git
a/time/strftime.c
b/time/strftime.c
index
438384c
..
69babad
100644
(file)
--- a/
time/strftime.c
+++ b/
time/strftime.c
@@
-46,6
+46,12
@@
#include <ctype.h>
#include <sys/types.h> /* Some systems define `time_t' here. */
+/* Some systems require <unistd.h> to be included before <time.h>
+ for localtime_r to be declared properly. */
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+
#ifdef TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>