summaryrefslogtreecommitdiff
path: root/libiberty/mkstemp.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-13 23:08:18 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-13 23:08:18 +0000
commit0be6f86d49011a517607cdcea973bece0282dd80 (patch)
tree99fd2d67156238d385740e1d51d437ad1e25d49a /libiberty/mkstemp.c
parent650df5dfc08561c688d0c7016babded2275f7fcd (diff)
downloadgcc-0be6f86d49011a517607cdcea973bece0282dd80.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23067 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/mkstemp.c')
-rw-r--r--libiberty/mkstemp.c2
1 files changed, 2 insertions, 0 deletions
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"