From b677032ba239157c0c98a7b74050e730d96f99ab Mon Sep 17 00:00:00 2001 From: Brodie Thiesfield Date: Mon, 8 Mar 2010 13:46:04 -0500 Subject: [PATCH] Avoid errors in evutil.c when building with _UNICODE defined --- evutil.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evutil.c b/evutil.c index 7ab47981..0be4e092 100644 --- a/evutil.c +++ b/evutil.c @@ -1277,7 +1277,9 @@ evutil_gai_strerror(int err) case EVUTIL_EAI_SYSTEM: return "system error"; default: -#ifdef USE_NATIVE_GETADDRINFO +#if defined(USE_NATIVE_GETADDRINFO) && defined(WIN32) + return gai_strerrorA(err); +#elif defined(USE_NATIVE_GETADDRINFO) return gai_strerror(err); #else return "Unknown error code";