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:
Nick Mathewson 2012-04-03 16:24:18 -04:00
parent 2449e0c508
commit bcf5258533

View File

@ -65,6 +65,10 @@ extern "C" {
#ifdef _WIN32
#include <winsock2.h>
#ifdef EVENT__HAVE_GETADDRINFO
/* for EAI_* definitions. */
#include <ws2tcpip.h>
#endif
#else
#include <sys/socket.h>
#endif