mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Include ws2tcpip.h from util.h to get EAI_* definitions.
This is necessary on msvc, to get the EVUTIL_EAI_* values defined properly
This commit is contained in:
parent
2449e0c508
commit
bcf5258533
@ -65,6 +65,10 @@ extern "C" {
|
|||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
|
#ifdef EVENT__HAVE_GETADDRINFO
|
||||||
|
/* for EAI_* definitions. */
|
||||||
|
#include <ws2tcpip.h>
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user