diff --git a/src/lib/evil/unposix/sys/time.c b/src/lib/evil/unposix/sys/time.c index d09e68dcb1..5b91e8d764 100644 --- a/src/lib/evil/unposix/sys/time.c +++ b/src/lib/evil/unposix/sys/time.c @@ -25,4 +25,3 @@ struct tm *localtime_r(const time_t * time, struct tm * result) localtime_s(result, time); return result; } - diff --git a/src/lib/evil/unposix/sys/time.h b/src/lib/evil/unposix/sys/time.h index bc38968472..bf94d31d76 100644 --- a/src/lib/evil/unposix/sys/time.h +++ b/src/lib/evil/unposix/sys/time.h @@ -1,11 +1,17 @@ -#ifndef SYS_TIME_H -#define SYS_TIME_H +#ifndef UNPOSIX_SYS_TIME_H +#define UNPOSIX_SYS_TIME_H #ifndef WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN #endif -// Windows Kit for Windows 10 already defines `struct timeval` and `time_t` + +#include #include +#include +#include +#include + +#include #include typedef unsigned short u_short; @@ -15,10 +21,6 @@ struct timezone { int tz_dsttime; /* type of DST correction */ }; -typedef long suseconds_t; - -typedef struct timeval timeval; - int gettimeofday(struct timeval * tp, struct timezone * tzp); struct tm *localtime_r(const time_t * time, struct tm * result);