From: Joel Brobecker Date: Fri, 8 May 2015 17:14:26 +0000 (+0000) Subject: libiberty/mkstemps.c: Include if not available. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f5e7f5900b6be6fff60da6aee6eb76952236b5e3;p=gcc.git libiberty/mkstemps.c: Include if not available. libiberty/ChangeLog: * mkstemps.c: #include if HAVE_TIME_H is defined but not HAVE_SYS_TIME_H. (fixes a build failure on LynxOS-178) From-SVN: r222918 --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 651f8a9a5f0..30da962795a 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2015-05-08 Joel Brobecker + + * mkstemps.c: #include if HAVE_TIME_H is defined + but not HAVE_SYS_TIME_H. + 2015-04-22 Eli Zaretskii * setenv.c : Declare only if not a macro. diff --git a/libiberty/mkstemps.c b/libiberty/mkstemps.c index a0e68a73b49..0e06fe17059 100644 --- a/libiberty/mkstemps.c +++ b/libiberty/mkstemps.c @@ -35,6 +35,8 @@ #endif #ifdef HAVE_SYS_TIME_H #include +#elif HAVE_TIME_H +#include #endif #include "ansidecl.h"