Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 16 Oct 1998 18:53:55 +0000 (18:53 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 16 Oct 1998 18:53:55 +0000 (18:53 +0000)
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.

ChangeLog
time/mktime.c
time/strftime.c

index 6dd86f5cac47a8e739c5e77062701c7cee50e2ae..ace7517da86981b09371a9bc1cbbee76e2ed6ec8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
 
        * db/Makefile: Add rule to generate shared object with the soname
index fda08a25fbaec634721d213ce68d1d7ca74d1b02..0fa92e0e65c1260d5e9c9967083a9d9461aca5b6 100644 (file)
 # 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) ()
index 438384caf3a50bfb828c46be358b248032dc8dd3..69babade3624a654ca04d14138606638ad6008d0 100644 (file)
 #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>