Add define for IPv6 code
This commit is contained in:
parent
acaf65a8f7
commit
dd53162519
|
@ -3523,12 +3523,14 @@ finish:
|
||||||
inet_ntop_compat(AF_INET, &sin->sin_addr,
|
inet_ntop_compat(AF_INET, &sin->sin_addr,
|
||||||
netplay_room_list[i].address, INET6_ADDRSTRLEN);
|
netplay_room_list[i].address, INET6_ADDRSTRLEN);
|
||||||
}
|
}
|
||||||
|
#if defined(AF_INET6) && !defined(HAVE_SOCKET_LEGACY)
|
||||||
else if (address->sa_family == AF_INET6)
|
else if (address->sa_family == AF_INET6)
|
||||||
{
|
{
|
||||||
struct sockaddr_in6 *sin = (struct sockaddr_in6 *) address;
|
struct sockaddr_in6 *sin = (struct sockaddr_in6 *) address;
|
||||||
inet_ntop_compat(AF_INET6, &sin->sin6_addr,
|
inet_ntop_compat(AF_INET6, &sin->sin6_addr,
|
||||||
netplay_room_list[i].address, INET6_ADDRSTRLEN);
|
netplay_room_list[i].address, INET6_ADDRSTRLEN);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
strlcpy(netplay_room_list[i].corename,
|
strlcpy(netplay_room_list[i].corename,
|
||||||
host->core,
|
host->core,
|
||||||
|
|
Loading…
Reference in New Issue