diff options
-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 5009807..923613d 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" |