mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
- Win7/VS100 compile fix
- throw NotImplementedException when no IPV6_V6ONLY defined
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
#elif defined (WINVER)
|
||||
#define _WIN32_WINNT WINVER
|
||||
#else
|
||||
#define _WIN32_WINNT 0x0500
|
||||
#define _WIN32_WINNT 0x0601
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
@@ -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