Merge pull request #4166 from GregorR/setsockopt-win

Suppress a warning due to weird declarations on Windows
This commit is contained in:
Twinaphex 2016-12-06 02:54:14 +01:00 committed by GitHub
commit 6f05fe0ff5

View File

@ -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