work around itojun BSD IPV6_ONLY brokenness

master
leitner 21 years ago
parent f6b5de0c93
commit 2af3efb074

@ -25,6 +25,12 @@ compat:
} else
return -1;
}
#ifdef IPV6_V6ONLY
{
int zero=0;
setsockopt(s,IPPROTO_IPV6,IPV6_V6ONLY,(void*)&zero,sizeof(zero));
}
#endif
return s;
#else
return socket_tcp4();

@ -25,6 +25,12 @@ compat:
} else
return -1;
}
#ifdef IPV6_V6ONLY
{
int zero=0;
setsockopt(s,IPPROTO_IPV6,IPV6_V6ONLY,(void*)&zero,sizeof(zero));
}
#endif
return s;
#else
return socket_udp();

Loading…
Cancel
Save