diff options
author | Jeffrey A Law <law@cygnus.com> | 1998-10-13 23:08:18 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-10-13 17:08:18 -0600 |
commit | ae76f1bedd0e090739787ef4cb4a04167304cbb0 (patch) | |
tree | 99fd2d67156238d385740e1d51d437ad1e25d49a /libiberty | |
parent | 470032d72e41bac5ed47efd297dbe9d0ec5d3dc8 (diff) | |
download | gcc-ae76f1bedd0e090739787ef4cb4a04167304cbb0.tar.gz |
mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
* mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
* configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
* config.in, configure: Rebuilt.
From-SVN: r23067
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 4 | ||||
-rw-r--r-- | libiberty/config.in | 3 | ||||
-rwxr-xr-x | libiberty/configure | 2 | ||||
-rw-r--r-- | libiberty/configure.in | 2 | ||||
-rw-r--r-- | libiberty/mkstemp.c | 2 |
5 files changed, 11 insertions, 2 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 73e0dc8f281..9c5359c21e3 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,5 +1,9 @@ Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com) + * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h + * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too. + * config.in, configure: Rebuilt. + * getopt.c: Check HAVE_STRINGS_H before including strings.h. * configure.in (AC_CHECK_HEADERS): Check for strings.h too. * config.in, configure: Rebuilt. diff --git a/libiberty/config.in b/libiberty/config.in index 51da7984749..3f47928afbe 100644 --- a/libiberty/config.in +++ b/libiberty/config.in @@ -190,5 +190,8 @@ /* Define if you have the <sys/param.h> header file. */ #undef HAVE_SYS_PARAM_H +/* Define if you have the <sys/time.h> header file. */ +#undef HAVE_SYS_TIME_H + /* Define if you have the <unistd.h> header file. */ #undef HAVE_UNISTD_H diff --git a/libiberty/configure b/libiberty/configure index 52de547b8c5..cf36e1e925b 100755 --- a/libiberty/configure +++ b/libiberty/configure @@ -1027,7 +1027,7 @@ else fi echo "$ac_t""$CPP" 1>&6 -for ac_hdr in sys/file.h sys/param.h stdlib.h string.h unistd.h strings.h +for ac_hdr in sys/file.h sys/param.h stdlib.h string.h unistd.h strings.h sys/time.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 diff --git a/libiberty/configure.in b/libiberty/configure.in index 57b9071f25b..ee824595cdc 100644 --- a/libiberty/configure.in +++ b/libiberty/configure.in @@ -106,7 +106,7 @@ AC_SUBST_FILE(host_makefile_frag) # It's OK to check for header files. Although the compiler may not be # able to link anything, it had better be able to at least compile # something. -AC_CHECK_HEADERS(sys/file.h sys/param.h stdlib.h string.h unistd.h strings.h) +AC_CHECK_HEADERS(sys/file.h sys/param.h stdlib.h string.h unistd.h strings.h sys/time.h) # This is the list of functions which libiberty will provide if they # are not available on the host. diff --git a/libiberty/mkstemp.c b/libiberty/mkstemp.c index f0eb78c1e2a..af496d532e8 100644 --- a/libiberty/mkstemp.c +++ b/libiberty/mkstemp.c @@ -33,7 +33,9 @@ #ifdef HAVE_UNISTD_H #include <unistd.h> #endif +#ifdef HAVE_SYS_TIME_H #include <sys/time.h> +#endif #include "ansidecl.h" #else #include "system.h" |