Suppress a warning due to weird declarations on Windows.

This commit is contained in:
Gregor Richards 2016-12-05 20:50:05 -05:00
parent d3834bb795
commit a70e21f328

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