Attempt to fix 2038 problem with MSVC

This commit is contained in:
Theo Buehler
2024-08-02 21:54:08 +02:00
committed by Brent Cook
parent 9a399d26a0
commit 3467d6f282
2 changed files with 12 additions and 1 deletions

View File

@@ -8,6 +8,15 @@
#ifdef _MSC_VER
#include <winsock2.h>
#define timeval libressl_timeval
#define gettimeofday libressl_gettimeofday
struct timeval {
long long tv_sec;
long tv_usec;
};
int gettimeofday(struct timeval *tp, void *tzp);
#else
#include_next <sys/time.h>