diff options
Diffstat (limited to 'include/compat/sys/time.h')
-rw-r--r-- | include/compat/sys/time.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/compat/sys/time.h b/include/compat/sys/time.h index 76428c1..2448969 100644 --- a/include/compat/sys/time.h +++ b/include/compat/sys/time.h | |||
@@ -8,6 +8,15 @@ | |||
8 | 8 | ||
9 | #ifdef _MSC_VER | 9 | #ifdef _MSC_VER |
10 | #include <winsock2.h> | 10 | #include <winsock2.h> |
11 | |||
12 | #define timeval libressl_timeval | ||
13 | #define gettimeofday libressl_gettimeofday | ||
14 | |||
15 | struct timeval { | ||
16 | long long tv_sec; | ||
17 | long tv_usec; | ||
18 | }; | ||
19 | |||
11 | int gettimeofday(struct timeval *tp, void *tzp); | 20 | int gettimeofday(struct timeval *tp, void *tzp); |
12 | #else | 21 | #else |
13 | #include_next <sys/time.h> | 22 | #include_next <sys/time.h> |