diff --git a/network/netplay/netplay_init.c b/network/netplay/netplay_init.c index 75f1edaf0e..e6f4a4ac8e 100644 --- a/network/netplay/netplay_init.c +++ b/network/netplay/netplay_init.c @@ -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