Dreamcast: Return errno on EAI_SYSTEM error result from getaddrinfo

This commit is contained in:
UnknownShadow200 2025-10-26 23:24:06 +11:00
parent f2b9b42437
commit d00fb4b333
1 changed files with 1 additions and 0 deletions

View File

@ -586,6 +586,7 @@ static cc_result ParseHost(const char* host, int port, cc_sockaddr* addrs, int*
int res = getaddrinfo(host, portRaw, &hints, &result);
if (res == EAI_NONAME) return SOCK_ERR_UNKNOWN_HOST;
if (res == EAI_SYSTEM) return errno;
if (res) return res;
int i = 0;