- Win7/VS100 compile fix

- throw NotImplementedException when no IPV6_V6ONLY defined
This commit is contained in:
Aleksandar Fabijanic
2012-09-10 04:10:35 +00:00
parent c19c3f9411
commit 1a139794de
2 changed files with 5 additions and 3 deletions

View File

@@ -224,8 +224,10 @@ void SocketImpl::bind6(const SocketAddress& address, bool reuseAddress, bool ipV
{
init(address.af());
}
#ifdef IPV6_V6ONLY)
#ifdef IPV6_V6ONLY
setOption(IPPROTO_IPV6, IPV6_V6ONLY, ipV6Only ? 1 : 0);
#else
if (ipV6Only) throw Poco::NotImplementedException("IPV6_V6ONLY not defined.");
#endif
if (reuseAddress)
{