diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/compat/sys/time.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/compat/sys/time.h b/include/compat/sys/time.h index 2448969..0388333 100644 --- a/include/compat/sys/time.h +++ b/include/compat/sys/time.h | |||
| @@ -7,16 +7,15 @@ | |||
| 7 | #define LIBCRYPTOCOMPAT_SYS_TIME_H | 7 | #define LIBCRYPTOCOMPAT_SYS_TIME_H |
| 8 | 8 | ||
| 9 | #ifdef _MSC_VER | 9 | #ifdef _MSC_VER |
| 10 | /* | ||
| 11 | * Use the winsock struct timeval: it is what <openssl/dtls1.h> gives | ||
| 12 | * callers of DTLSv1_get_timeout() and the dgram BIO ctrls, so libssl | ||
| 13 | * must be built against the same layout. | ||
| 14 | */ | ||
| 10 | #include <winsock2.h> | 15 | #include <winsock2.h> |
| 11 | 16 | ||
| 12 | #define timeval libressl_timeval | ||
| 13 | #define gettimeofday libressl_gettimeofday | 17 | #define gettimeofday libressl_gettimeofday |
| 14 | 18 | ||
| 15 | struct timeval { | ||
| 16 | long long tv_sec; | ||
| 17 | long tv_usec; | ||
| 18 | }; | ||
| 19 | |||
| 20 | int gettimeofday(struct timeval *tp, void *tzp); | 19 | int gettimeofday(struct timeval *tp, void *tzp); |
| 21 | #else | 20 | #else |
| 22 | #include_next <sys/time.h> | 21 | #include_next <sys/time.h> |
