From 84cf72ddbeb6a38175ec04a1afc948373518086b Mon Sep 17 00:00:00 2001 From: iahuntn <126607423+iahuntn@users.noreply.github.com> Date: Wed, 1 Mar 2023 18:10:21 +0700 Subject: [PATCH] Fix building on MSYS2 MinGW --- tests/common/test.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/common/test.h b/tests/common/test.h index c2ddaf0..e693071 100644 --- a/tests/common/test.h +++ b/tests/common/test.h @@ -52,10 +52,12 @@ */ // *sigh* Microsoft has this in winsock2.h because they are too lazy to put it in the standard location ... !?!? +#ifdef _MSC_VER typedef struct timeval { long tv_sec; long tv_usec; } timeval; +#endif // *sigh* no gettimeofday on Win32/Win64 int gettimeofday(struct timeval * tp, void * tzp); -- 2.47.3