Skip to content

Commit ad3f482

Browse files
fix: windows crosscompiling
1 parent d7aa51c commit ad3f482

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

common/time_util.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ either expressed or implied, of the Regents of The University of Michigan.
3232
#include <time.h>
3333

3434
#ifdef _WIN32
35+
#ifdef __MINGW32__
36+
#include <winsock2.h>
37+
#else
3538
#include <Winsock2.h>
39+
#endif
3640
typedef long long suseconds_t;
3741
#endif
3842

0 commit comments

Comments
 (0)