From 527c8ea0cfb32e60cd810f11f3452bea2d4e2a5c Mon Sep 17 00:00:00 2001 From: Lynix Date: Sun, 28 Aug 2016 01:09:40 +0200 Subject: [PATCH] Network/SocketImpl: Fix compilation for recent MinGW versions Former-commit-id: 2ae224dcad69a0810766070d2b2da5b27e7baee4 [formerly 650e490cc39a9d9c418d2b1d51e99abffc1405b0] [formerly 01200d66fef998690c174eb8b9dfe5e99c2f9dc0 [formerly ab94280b73977d0fafcde35eb84cf70f48f34382]] Former-commit-id: 7dda3b7eb0c7343300c89be7a094068a54f49e6f [formerly 19c82582082ff5657ccb4a3259c94c57984cb9a7] Former-commit-id: 8e2bea477e1d83645530b00357315ae8160376c5 --- src/Nazara/Network/Win32/SocketImpl.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Nazara/Network/Win32/SocketImpl.cpp b/src/Nazara/Network/Win32/SocketImpl.cpp index ab7ba7fe3..f35a4a078 100644 --- a/src/Nazara/Network/Win32/SocketImpl.cpp +++ b/src/Nazara/Network/Win32/SocketImpl.cpp @@ -8,8 +8,9 @@ #include #include -#ifdef NAZARA_COMPILER_MINGW -// MinGW is lacking Mstcpip.h and that's too bad + +// Some compilers (olders versions of MinGW) are lacking Mstcpip.h which defines the following struct/#define +// Define them ourself for now struct tcp_keepalive { u_long onoff; @@ -18,9 +19,6 @@ struct tcp_keepalive }; #define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4) -#else - #include -#endif // NAZARA_COMPILER_MINGW #include