Windows compile issue

This commit is contained in:
Fred Nicolson 2017-05-11 14:37:57 +01:00
parent 60dfd44c0f
commit dd3efa88cf

View File

@ -43,7 +43,7 @@ namespace fr
//If it's an IPv6 interface, attempt to allow IPv4 connections //If it's an IPv6 interface, attempt to allow IPv4 connections
if(c->ai_family == AF_INET6) if(c->ai_family == AF_INET6)
{ {
setsockopt(socket_descriptor, IPPROTO_IPV6, IPV6_V6ONLY, (void *)&no, sizeof(no)); setsockopt(socket_descriptor, IPPROTO_IPV6, IPV6_V6ONLY, (char*)&no, sizeof(no));
} }
//Attempt to bind //Attempt to bind