Browse Source

fix #240

pull/246/head
Max Lv 10 years ago
parent
commit
e5983a364c
1 changed files with 17 additions and 0 deletions
  1. 17
      src/win32.h

17
src/win32.h

@ -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)

Loading…
Cancel
Save