include time.h by default for time() prototype
This commit is contained in:
parent
d0ec781df1
commit
384a321928
|
@ -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/ */
|
||||
|
|
3
netcat.c
3
netcat.c
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue