1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00
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.
This commit is contained in:
Ulrich Drepper
1998-10-16 18:53:55 +00:00
parent 0049f576d1
commit c7a9f249c7
3 changed files with 20 additions and 1 deletions

View File

@@ -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> 1998-10-16 Ulrich Drepper <drepper@cygnus.com>
* db/Makefile: Add rule to generate shared object with the soname * db/Makefile: Add rule to generate shared object with the soname

View File

@@ -47,6 +47,12 @@
# define LEAP_SECONDS_POSSIBLE 1 # define LEAP_SECONDS_POSSIBLE 1
#endif #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 <sys/types.h> /* Some systems define `time_t' here. */
#include <time.h> #include <time.h>
@@ -64,7 +70,7 @@
#endif /* DEBUG */ #endif /* DEBUG */
#ifndef __P #ifndef __P
# if defined (__GNUC__) || (defined (__STDC__) && __STDC__) # if defined __GNUC__ || (defined __STDC__ && __STDC__)
# define __P(args) args # define __P(args) args
# else # else
# define __P(args) () # define __P(args) ()

View File

@@ -46,6 +46,12 @@
#include <ctype.h> #include <ctype.h>
#include <sys/types.h> /* Some systems define `time_t' here. */ #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 #ifdef TIME_WITH_SYS_TIME
# include <sys/time.h> # include <sys/time.h>
# include <time.h> # include <time.h>