This commit is contained in:
twinaphex 2017-09-30 16:59:14 +02:00
parent 4dd6c7fac7
commit 1e37aab49b

View File

@ -86,7 +86,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, (void*)&on, sizeof(on)) < 0)
if (setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (const char*)&on, sizeof(on)) < 0)
RARCH_WARN("Failed to listen on both IPv6 and IPv4\n");
}
#endif