mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 02:18:04 +01:00
- Win7/VS100 compile fix
- throw NotImplementedException when no IPV6_V6ONLY defined
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user