From bcf525853394e13364950d79468c1e7085c0cb95 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 3 Apr 2012 16:24:18 -0400 Subject: [PATCH] Include ws2tcpip.h from util.h to get EAI_* definitions. This is necessary on msvc, to get the EVUTIL_EAI_* values defined properly --- include/event2/util.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/event2/util.h b/include/event2/util.h index 68754c7a..eb120b21 100644 --- a/include/event2/util.h +++ b/include/event2/util.h @@ -65,6 +65,10 @@ extern "C" { #ifdef _WIN32 #include +#ifdef EVENT__HAVE_GETADDRINFO +/* for EAI_* definitions. */ +#include +#endif #else #include #endif