aboutsummaryrefslogtreecommitdiff
path: root/libiberty/mkstemps.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2015-05-08 17:14:26 +0000
committerJoel Brobecker <brobecke@gcc.gnu.org>2015-05-08 17:14:26 +0000
commitf5e7f5900b6be6fff60da6aee6eb76952236b5e3 (patch)
tree344ec8553dc136eb5e20b5138e48d895ba582733 /libiberty/mkstemps.c
parent6bc5949358737e1be9badf78b82836c9e31e8d88 (diff)
downloadgcc-f5e7f5900b6be6fff60da6aee6eb76952236b5e3.zip
gcc-f5e7f5900b6be6fff60da6aee6eb76952236b5e3.tar.gz
gcc-f5e7f5900b6be6fff60da6aee6eb76952236b5e3.tar.bz2
libiberty/mkstemps.c: Include <time.h> if <sys/time.h> not available.
libiberty/ChangeLog: * mkstemps.c: #include <time.h> if HAVE_TIME_H is defined but not HAVE_SYS_TIME_H. (fixes a build failure on LynxOS-178) From-SVN: r222918
Diffstat (limited to 'libiberty/mkstemps.c')
-rw-r--r--libiberty/mkstemps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libiberty/mkstemps.c b/libiberty/mkstemps.c
index a0e68a7..0e06fe1 100644
--- a/libiberty/mkstemps.c
+++ b/libiberty/mkstemps.c
@@ -35,6 +35,8 @@
#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#elif HAVE_TIME_H
+#include <time.h>
#endif
#include "ansidecl.h"