include time.h by default for time() prototype

This commit is contained in:
Mike Frysinger 2009-03-06 01:32:40 +00:00
parent d0ec781df1
commit 384a321928
2 changed files with 6 additions and 0 deletions

View File

@ -101,6 +101,9 @@
/* some SV-flavors break select stuff out separately */
#define HAVE_SELECT_H
/* some put time() in here rather than sys/time.h */
#define HAVE_TIME_H
/* assorted others */
#define HAVE_PARAM_H /* in sys/ */
#define HAVE_SYSMACROS_H /* in sys/ */

View File

@ -43,6 +43,9 @@
#ifdef HAVE_SELECT_H /* random SV variants need this */
#include <sys/select.h>
#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
/* have to do this *before* including types.h. xxx: Linux still has it wrong */
#ifdef FD_SETSIZE /* should be in types.h, butcha never know. */