aboutsummaryrefslogtreecommitdiff
path: root/time/strftime.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-10-16 18:53:55 +0000
committerUlrich Drepper <drepper@redhat.com>1998-10-16 18:53:55 +0000
commitc7a9f249c71b5014fdb7140e2f72686f7be802ac (patch)
treed908585879d3217919d88f64c9669137e31f1091 /time/strftime.c
parent0049f576d18869fcdf4b845ebb2d28e5178727bb (diff)
downloadglibc-c7a9f249c71b5014fdb7140e2f72686f7be802ac.tar
glibc-c7a9f249c71b5014fdb7140e2f72686f7be802ac.tar.gz
glibc-c7a9f249c71b5014fdb7140e2f72686f7be802ac.tar.bz2
glibc-c7a9f249c71b5014fdb7140e2f72686f7be802ac.zip
Update.
1998-10-16 Paul Eggert <eggert@shade.twinsun.com> * time/mktime.c: Some systems require <unistd.h> to be included before <time.h> for localtime_r to be declared properly. * time/strftime.c: Likewise.
Diffstat (limited to 'time/strftime.c')
-rw-r--r--time/strftime.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/time/strftime.c b/time/strftime.c
index 438384caf3..69babade36 100644
--- 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>