From c7a9f249c71b5014fdb7140e2f72686f7be802ac Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 16 Oct 1998 18:53:55 +0000 Subject: Update. 1998-10-16 Paul Eggert * time/mktime.c: Some systems require to be included before for localtime_r to be declared properly. * time/strftime.c: Likewise. --- time/mktime.c | 8 +++++++- time/strftime.c | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'time') 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 to be included before + for localtime_r to be declared properly. */ +#if HAVE_UNISTD_H +# include +#endif + #include /* Some systems define `time_t' here. */ #include @@ -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) () diff --git a/time/strftime.c b/time/strftime.c index 438384c..69babad 100644 --- a/time/strftime.c +++ b/time/strftime.c @@ -46,6 +46,12 @@ #include #include /* Some systems define `time_t' here. */ +/* Some systems require to be included before + for localtime_r to be declared properly. */ +#if HAVE_UNISTD_H +# include +#endif + #ifdef TIME_WITH_SYS_TIME # include # include -- cgit v1.1