mirror of
https://github.com/libretro/RetroArch
synced 2025-03-16 07:21:03 +00:00
Merge pull request #4166 from GregorR/setsockopt-win
Suppress a warning due to weird declarations on Windows
This commit is contained in:
commit
6f05fe0ff5
@ -105,7 +105,7 @@ static int init_tcp_connection(const struct addrinfo *res,
|
||||
int on = 0;
|
||||
if (res->ai_family == AF_INET6)
|
||||
{
|
||||
if (setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)) < 0)
|
||||
if (setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (void*)&on, sizeof(on)) < 0)
|
||||
RARCH_WARN("Failed to listen on both IPv6 and IPv4\n");
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user