Message ID | 1431095891-7196-1-git-send-email-brobecker@adacore.com |
---|---|
State | New |
Headers | show |
> * mkstemps.c: #include <time.h> if HAVE_TIME_H is defined > but not HAVE_SYS_TIME_H. Ok.
> > * mkstemps.c: #include <time.h> if HAVE_TIME_H is defined > > but not HAVE_SYS_TIME_H. > > Ok. Thank you, DJ. Pushed to both GCC and binutils-gdb.
On 05/08/2015 08:38 AM, Joel Brobecker wrote: > Hello, > > Attempting to build libiberty on LynxOS-178 fails trying to compile > mkstemps.c with the following error: LynxOS? I haven't had to do anything with that since, umm, the early 90s. So sorry you've got that task... > > libiberty/ChangeLog: > > * mkstemps.c: #include <time.h> if HAVE_TIME_H is defined > but not HAVE_SYS_TIME_H. > > OK to commit? OK. jeff
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"