From 07bc00d3198706beba729d8087710596ac0eea4a 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: 51fee7d3e9ec5a596f6fb685c3492b361d624d7d [formerly bd30704cfef75b86250d68c264a654e3e051d912] [formerly 06023deb981e80179580188f5ca40fdae1400749 [formerly 9bc876eb82c92aed1c663b9bd40ebbb19564c6c6]] Former-commit-id: ef78dee1cdee3a55a4d263b0c69ec9fe2ee4a344 [formerly 568c4e6c69febd08057496b12ac3238f5cb80189] Former-commit-id: 544b6476f43a6f3091a1786d20aaf84bb907e8f5 --- 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