diff options
author | Joel Brobecker <brobecker@adacore.com> | 2015-05-08 17:14:26 +0000 |
---|---|---|
committer | Joel Brobecker <brobecke@gcc.gnu.org> | 2015-05-08 17:14:26 +0000 |
commit | f5e7f5900b6be6fff60da6aee6eb76952236b5e3 (patch) | |
tree | 344ec8553dc136eb5e20b5138e48d895ba582733 | |
parent | 6bc5949358737e1be9badf78b82836c9e31e8d88 (diff) | |
download | gcc-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
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rw-r--r-- | libiberty/mkstemps.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 651f8a9..30da962 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2015-05-08 Joel Brobecker <brobecker@adacore.com> + + * mkstemps.c: #include <time.h> if HAVE_TIME_H is defined + but not HAVE_SYS_TIME_H. + 2015-04-22 Eli Zaretskii <eliz@gnu.org> * setenv.c <environ>: Declare only if not a macro. 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" |