From: iahuntn <126607423+iahuntn@users.noreply.github.com> Date: Wed, 1 Mar 2023 11:10:21 +0000 (+0700) Subject: Fix building on MSYS2 MinGW X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=84cf72ddbeb6a38175ec04a1afc948373518086b;p=jp%2Fvkvg.git Fix building on MSYS2 MinGW --- 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);