aboutsummaryrefslogtreecommitdiff
path: root/time/mktime.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/mktime.c
parent0049f576d18869fcdf4b845ebb2d28e5178727bb (diff)
downloadglibc-c7a9f249c71b5014fdb7140e2f72686f7be802ac.zip
glibc-c7a9f249c71b5014fdb7140e2f72686f7be802ac.tar.gz
glibc-c7a9f249c71b5014fdb7140e2f72686f7be802ac.tar.bz2
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/mktime.c')
-rw-r--r--time/mktime.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/time/mktime.c b/time/mktime.c
index fda08a2..0fa92e0 100644
--- a/time/mktime.c
+++ b/time/mktime.c
@@ -47,6 +47,12 @@
# define LEAP_SECONDS_POSSIBLE 1
#endif
+/* 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
+
#include <sys/types.h> /* Some systems define `time_t' here. */
#include <time.h>
@@ -64,7 +70,7 @@
#endif /* DEBUG */
#ifndef __P
-# if defined (__GNUC__) || (defined (__STDC__) && __STDC__)
+# if defined __GNUC__ || (defined __STDC__ && __STDC__)
# define __P(args) args
# else
# define __P(args) ()