summaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authoriahuntn <126607423+iahuntn@users.noreply.github.com>2023-03-01 18:10:21 +0700
committerj-p <jp_bruyere@hotmail.com>2023-03-01 18:54:49 +0100
commit84cf72ddbeb6a38175ec04a1afc948373518086b (patch)
treea86f3539674ce743397eda0e47ce0f4b61c51c41
parent1efa2de18004d6fdcdf67fdb2aaef1e89837b4ac (diff)
Fix building on MSYS2 MinGW
-rw-r--r--tests/common/test.h2
1 files changed, 2 insertions, 0 deletions
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);