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
This commit is contained in:
Joel Brobecker 2015-05-08 17:14:26 +00:00 committed by Joel Brobecker
parent 6bc5949358
commit f5e7f5900b
2 changed files with 7 additions and 0 deletions

View File

@ -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.

View File

@ -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"