[gettimeofday] use timespec from msvc

This commit is contained in:
xoviat 2017-10-27 15:22:44 -05:00 committed by Alexander Karatarakis
parent 2149fbdf59
commit 7ed6466a9d

View File

@ -4,12 +4,9 @@
#ifdef _MSC_VER
#include <winsock2.h>
int gettimeofday(struct timeval * tp, struct timezone * tzp);
#include <time.h>
struct timespec {
time_t tv_sec;
time_t tv_nsec;
};
int gettimeofday(struct timeval * tp, struct timezone * tzp);
#endif /* _MSC_VER */