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
This commit is contained in:
parent
f16187674c
commit
07bc00d319
|
|
@ -8,8 +8,9 @@
|
||||||
#include <Nazara/Network/Win32/IpAddressImpl.hpp>
|
#include <Nazara/Network/Win32/IpAddressImpl.hpp>
|
||||||
|
|
||||||
#include <Winsock2.h>
|
#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
|
struct tcp_keepalive
|
||||||
{
|
{
|
||||||
u_long onoff;
|
u_long onoff;
|
||||||
|
|
@ -18,9 +19,6 @@ struct tcp_keepalive
|
||||||
};
|
};
|
||||||
|
|
||||||
#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)
|
#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)
|
||||||
#else
|
|
||||||
#include <Mstcpip.h>
|
|
||||||
#endif // NAZARA_COMPILER_MINGW
|
|
||||||
|
|
||||||
#include <Nazara/Network/Debug.hpp>
|
#include <Nazara/Network/Debug.hpp>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue