Remove winsocks

This commit is contained in:
mio 2021-10-03 23:25:26 +02:00
parent 81942e9097
commit 65e1a17386
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873

View File

@ -156,17 +156,8 @@ typedef _W64 unsigned int uintptr_t;
#if defined(_MSC_VER)
#include <sys/types.h>
#include <sys/timeb.h>
#include <winsock2.h>
#include <windows.h>
static int gettimeofday(struct timeval* t, void* timezone)
{
struct _timeb timebuffer;
_ftime( &timebuffer );
t->tv_sec = (long)timebuffer.time;
t->tv_usec = 1000*timebuffer.millitm;
return 0;
}
#else
#include <sys/time.h>
#endif