mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-21 06:23:52 +00:00
fix #240
This commit is contained in:
+17
@@ -44,6 +44,23 @@
|
||||
#undef ERROR
|
||||
#endif
|
||||
|
||||
#ifndef AI_ALL
|
||||
#define AI_ALL 0x00000100
|
||||
#endif
|
||||
|
||||
#ifndef AI_ADDRCONFIG
|
||||
#define AI_ADDRCONFIG 0x00000400
|
||||
#endif
|
||||
|
||||
#ifndef AI_V4MAPPED
|
||||
#define AI_V4MAPPED 0x00000800
|
||||
#endif
|
||||
|
||||
#ifndef IPV6_V6ONLY
|
||||
#define IPV6_V6ONLY 27 // Treat wildcard bind as AF_INET6-only.
|
||||
#endif
|
||||
|
||||
|
||||
#define EWOULDBLOCK WSAEWOULDBLOCK
|
||||
#define errno WSAGetLastError()
|
||||
#define close(fd) closesocket(fd)
|
||||
|
||||
Reference in New Issue
Block a user