mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Avoid errors in evutil.c when building with _UNICODE defined
This commit is contained in:
parent
2c2618d858
commit
b677032ba2
4
evutil.c
4
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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user