Network/SocketImpl: Fix compilation for recent MinGW versions

Former-commit-id: b32cdfc7c9341b56a2534f49304ed6a40889ef65 [formerly be0dcc051b3714196a74c2639d61f3377b1732cf] [formerly 4a3c9b84f8d4b5c55f3fe086df6609b9198ff2a0 [formerly d07e788c4b54277aa726e82810c36c64dae14084]]
Former-commit-id: f71fe5191f9470facf8669ebd89ff86f8b9be9dc [formerly 96f25b63a8bb4ffa5523dd972bf2a24b8df80269]
Former-commit-id: f1beb415423a8babbe61e95c3fe35ad9456c6622
This commit is contained in:
Lynix 2016-08-28 01:09:40 +02:00
parent 732a6d9322
commit 134063a87d
1 changed files with 3 additions and 5 deletions

View File

@ -8,8 +8,9 @@
#include <Nazara/Network/Win32/IpAddressImpl.hpp>
#include <Winsock2.h>
#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 <Mstcpip.h>
#endif // NAZARA_COMPILER_MINGW
#include <Nazara/Network/Debug.hpp>