diff --git a/lib/platform_compat.h b/lib/platform_compat.h index 0f3274bfc..1be73ce86 100644 --- a/lib/platform_compat.h +++ b/lib/platform_compat.h @@ -40,7 +40,8 @@ #endif // gettimeofday for Windows (timezone already defined in time.h) - #ifndef HAVE_GETTIMEOFDAY + // Note: MSYS2 already has gettimeofday in sys/time.h, so we skip it here + #if !defined(HAVE_GETTIMEOFDAY) && !defined(__MINGW32__) static inline int gettimeofday(struct timeval *tv, void *tz) { (void)tz; if (tv) { diff --git a/tests/test_crypto b/tests/test_crypto index ffaef6c40..5252f9d51 100755 Binary files a/tests/test_crypto and b/tests/test_crypto differ diff --git a/tests/test_ecc_encrypt b/tests/test_ecc_encrypt index 5764f4068..ad9a58d67 100755 Binary files a/tests/test_ecc_encrypt and b/tests/test_ecc_encrypt differ diff --git a/tests/test_pkt_normalizer_standalone b/tests/test_pkt_normalizer_standalone index b07a31c81..91e18a848 100755 Binary files a/tests/test_pkt_normalizer_standalone and b/tests/test_pkt_normalizer_standalone differ