Util: Use HAS_IPV6 more where appropriate

This commit is contained in:
Vicki Pfau 2024-04-23 22:33:57 -07:00
parent 55add8a2c6
commit 96702f7db1
1 changed files with 2 additions and 2 deletions

View File

@ -234,7 +234,7 @@ static inline Socket SocketOpenTCP(int port, const struct Address* bindAddress)
#else
err = bind(sock, (const struct sockaddr*) &bindInfo, sizeof(bindInfo));
#endif
#if !defined(__3DS__) && !defined(GEKKO)
#ifdef HAS_IPV6
} else {
struct sockaddr_in6 bindInfo;
memset(&bindInfo, 0, sizeof(bindInfo));
@ -333,7 +333,7 @@ static inline Socket SocketAccept(Socket socket, struct Address* address) {
#else
return accept(socket, (struct sockaddr*) &addrInfo, &len);
#endif
#if !defined(__3DS__) && !defined(GEKKO)
#ifdef HAS_IPV6
} else {
struct sockaddr_in6 addrInfo;
memset(&addrInfo, 0, sizeof(addrInfo));