Windows: Use gai_strerrorW() instead of gai_strerror()

This allows compilation on Windows CE too.
This commit is contained in:
Patrick Gansterer 2014-04-15 18:42:57 +02:00
parent fe0ca596d6
commit fb9dc57068

View file

@ -62,7 +62,11 @@ struct libwebsocket *libwebsocket_client_connect_2(
memset(&hints, 0, sizeof(struct addrinfo));
n = getaddrinfo(ads, NULL, &hints, &result);
if (n) {
#ifdef _WIN32
lwsl_err("getaddrinfo: %ls\n", gai_strerrorW(n));
#else
lwsl_err("getaddrinfo: %s\n", gai_strerror(n));
#endif
goto oom4;
}