diff options
| author | iahuntn <126607423+iahuntn@users.noreply.github.com> | 2023-03-01 18:10:21 +0700 |
|---|---|---|
| committer | j-p <jp_bruyere@hotmail.com> | 2023-03-01 18:54:49 +0100 |
| commit | 84cf72ddbeb6a38175ec04a1afc948373518086b (patch) | |
| tree | a86f3539674ce743397eda0e47ce0f4b61c51c41 | |
| parent | 1efa2de18004d6fdcdf67fdb2aaef1e89837b4ac (diff) | |
Fix building on MSYS2 MinGW
| -rw-r--r-- | tests/common/test.h | 2 |
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); |