mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Merge pull request #4126 from GregorR/netplay-socket-legacy-is-awful-and-i-hate-it
inet_ntoa missing on Vita
This commit is contained in:
commit
f77f3ecec4
@ -1110,10 +1110,7 @@ static void announce_nat_traversal(netplay_t *netplay)
|
||||
#else
|
||||
if (netplay->nat_traversal_state.have_inet4)
|
||||
{
|
||||
strncpy(host,
|
||||
inet_ntoa(netplay->nat_traversal_state.ext_inet4_addr.sin_addr),
|
||||
PATH_MAX_LENGTH);
|
||||
host[PATH_MAX_LENGTH-1] = '\0';
|
||||
host[0] = '\0';
|
||||
snprintf(port, 6, "%hu",
|
||||
ntohs(netplay->nat_traversal_state.ext_inet4_addr.sin_port));
|
||||
port[5] = '\0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user