mirror of https://github.com/ClassiCube/ClassiCube
Dreamcast: Return errno on EAI_SYSTEM error result from getaddrinfo
This commit is contained in:
parent
f2b9b42437
commit
d00fb4b333
|
|
@ -586,6 +586,7 @@ static cc_result ParseHost(const char* host, int port, cc_sockaddr* addrs, int*
|
||||||
|
|
||||||
int res = getaddrinfo(host, portRaw, &hints, &result);
|
int res = getaddrinfo(host, portRaw, &hints, &result);
|
||||||
if (res == EAI_NONAME) return SOCK_ERR_UNKNOWN_HOST;
|
if (res == EAI_NONAME) return SOCK_ERR_UNKNOWN_HOST;
|
||||||
|
if (res == EAI_SYSTEM) return errno;
|
||||||
if (res) return res;
|
if (res) return res;
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue