Windows: Use gai_strerrorW() instead of gai_strerror()
This allows compilation on Windows CE too.
This commit is contained in:
parent
fe0ca596d6
commit
fb9dc57068
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue