X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fsocket.h;h=c2b496e9ed3afffd4dde041a56e68766400a61c3;hb=29932d4bddad6a0ad4269606e38701d544784951;hp=a56715d9931131dae0cc1c5b457a9440c074c44f;hpb=b0971f4459fd37813dd4779f2ddaf9b38cf5f776;p=dragonfireclient.git diff --git a/src/socket.h b/src/socket.h index a56715d99..c2b496e9e 100644 --- a/src/socket.h +++ b/src/socket.h @@ -22,13 +22,20 @@ with this program; if not, write to the Free Software Foundation, Inc., #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN + // Without this some of the network functions are not found on mingw + #ifndef _WIN32_WINNT + #define _WIN32_WINNT 0x0501 + #endif #include #include #include - #pragma comment(lib, "wsock32.lib") + #ifdef _MSC_VER + #pragma comment(lib, "ws2_32.lib") + #endif typedef SOCKET socket_t; typedef int socklen_t; #else + #include #include #include #include