mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00:00
Last suggested fix
This commit is contained in:
parent
a50cd1105e
commit
0a209c4564
@ -5642,7 +5642,6 @@ static bool init_tcp_socket(netplay_t *netplay, void *direct_host,
|
|||||||
{
|
{
|
||||||
char port_buf[6];
|
char port_buf[6];
|
||||||
snprintf(port_buf, sizeof(port_buf), "%hu", port);
|
snprintf(port_buf, sizeof(port_buf), "%hu", port);
|
||||||
#ifdef HAVE_INET6
|
|
||||||
if (!server)
|
if (!server)
|
||||||
{
|
{
|
||||||
hints.ai_flags = AI_PASSIVE;
|
hints.ai_flags = AI_PASSIVE;
|
||||||
@ -5653,7 +5652,6 @@ static bool init_tcp_socket(netplay_t *netplay, void *direct_host,
|
|||||||
hints.ai_family = AF_INET;
|
hints.ai_family = AF_INET;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
hints.ai_socktype = SOCK_STREAM;
|
hints.ai_socktype = SOCK_STREAM;
|
||||||
|
|
||||||
if (getaddrinfo_retro(server, port_buf, &hints, &res))
|
if (getaddrinfo_retro(server, port_buf, &hints, &res))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user