mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-23 15:14:40 +01:00
commit
4f4723a684
@ -152,8 +152,6 @@
|
|||||||
#define _WIN32_WINNT 0x0501
|
#define _WIN32_WINNT 0x0501
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <windows.h>
|
|
||||||
|
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
// Require Windows XP or higher with MinGW for getaddrinfo().
|
// Require Windows XP or higher with MinGW for getaddrinfo().
|
||||||
#if(_WIN32_WINNT >= 0x0501)
|
#if(_WIN32_WINNT >= 0x0501)
|
||||||
@ -164,8 +162,24 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
|
#include <windows.h>
|
||||||
#include <mswsock.h>
|
#include <mswsock.h>
|
||||||
|
|
||||||
|
#if !defined __MINGW32__
|
||||||
#include <Mstcpip.h>
|
#include <Mstcpip.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Workaround missing Mstcpip.h in mingw32 (MinGW64 provides this)
|
||||||
|
// __MINGW64_VERSION_MAJOR is only defined (through inclusion of private _mingw.h via
|
||||||
|
// windows.h) in mingw-w64
|
||||||
|
#if defined __MINGW32__ && !defined SIO_KEEPALIVE_VALS && !defined __MINGW64_VERSION_MAJOR
|
||||||
|
struct tcp_keepalive {
|
||||||
|
u_long onoff;
|
||||||
|
u_long keepalivetime;
|
||||||
|
u_long keepaliveinterval;
|
||||||
|
};
|
||||||
|
#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#include <ipexport.h>
|
#include <ipexport.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user