Add define for IPv6 code

This commit is contained in:
twinaphex 2017-05-17 07:24:17 +02:00
parent acaf65a8f7
commit dd53162519

View File

@ -3523,12 +3523,14 @@ finish:
inet_ntop_compat(AF_INET, &sin->sin_addr,
netplay_room_list[i].address, INET6_ADDRSTRLEN);
}
#if defined(AF_INET6) && !defined(HAVE_SOCKET_LEGACY)
else if (address->sa_family == AF_INET6)
{
struct sockaddr_in6 *sin = (struct sockaddr_in6 *) address;
inet_ntop_compat(AF_INET6, &sin->sin6_addr,
netplay_room_list[i].address, INET6_ADDRSTRLEN);
}
#endif
strlcpy(netplay_room_list[i].corename,
host->core,