mirror of
https://github.com/libressl/portable.git
synced 2026-01-17 21:51:17 +01:00
Attempt to fix 2038 problem with MSVC
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user