Fix incomplete-type for struct timeval

This commit is contained in:
Andrew Benson 2021-03-29 22:41:31 -05:00
parent c033bd20aa
commit 2ad482535e
2 changed files with 11 additions and 11 deletions

View file

@ -5,17 +5,6 @@
#include "zeek/util.h" #include "zeek/util.h"
#ifdef TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
#ifdef HAVE_DARWIN #ifdef HAVE_DARWIN
#include <mach/task.h> #include <mach/task.h>
#include <mach/mach_init.h> #include <mach/mach_init.h>

View file

@ -29,6 +29,17 @@
#include <vector> #include <vector>
#include <memory> // std::unique_ptr #include <memory> // std::unique_ptr
#ifdef TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
#ifdef DEBUG #ifdef DEBUG
#include <assert.h> #include <assert.h>