[RFA] libiberty/mkstemps.c: Include time.h if sys/time.h not available.

2015-05-08 Thread Joel Brobecker
Hello, Attempting to build libiberty on LynxOS-178 fails trying to compile mkstemps.c with the following error: mkstemps.c:84:18: error: storage size of 'tv' isn't known struct timeval tv; ^ This file would normally include sys/time.h to get the type's

Re: [RFA] libiberty/mkstemps.c: Include time.h if sys/time.h not available.

2015-05-08 Thread Joel Brobecker
* 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. -- Joel

Re: [RFA] libiberty/mkstemps.c: Include time.h if sys/time.h not available.

2015-05-08 Thread DJ Delorie
* mkstemps.c: #include time.h if HAVE_TIME_H is defined but not HAVE_SYS_TIME_H. Ok.

Re: [RFA] libiberty/mkstemps.c: Include time.h if sys/time.h not available.

2015-05-08 Thread Jeff Law
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: