Missing include to build on newer mingw32.
1 2 3 4 5 6 7 8 9 10 11 12
diff --git a/api.c b/api.c index a65c906..12f9d93 100644 --- a/api.c +++ b/api.c @@ -37,6 +37,7 @@ #endif #ifdef WIN32 + #include <ws2tcpip.h> #include <winsock2.h> #define SOCKETTYPE SOCKET