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
This commit is contained in:
parent
414bc1f5b4
commit
527c8ea0cf
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue