mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-18 00:15:27 +01:00
#if POCO_HAVE_IPv6 => #if defined(POCO_HAVE_IPv6)
This commit is contained in:
parent
8fe9757195
commit
0b6fd120c5
@ -55,7 +55,7 @@ DatagramSocketImpl::DatagramSocketImpl(IPAddress::Family family)
|
||||
{
|
||||
if (family == IPAddress::IPv4)
|
||||
init(AF_INET);
|
||||
#if POCO_HAVE_IPv6
|
||||
#if defined(POCO_HAVE_IPv6)
|
||||
else if (family == IPAddress::IPv6)
|
||||
init(AF_INET6);
|
||||
#endif
|
||||
|
@ -63,7 +63,7 @@ ICMPPacket::ICMPPacket(IPAddress::Family family, int dataSize):_pImpl(0)
|
||||
{
|
||||
if (family == IPAddress::IPv4)
|
||||
_pImpl = new ICMPv4PacketImpl(dataSize);
|
||||
#if POCO_HAVE_IPv6
|
||||
#if defined(POCO_HAVE_IPv6)
|
||||
else if (family == IPAddress::IPv6)
|
||||
throw NotImplementedException("ICMPv6 packets not implemented.");
|
||||
#endif
|
||||
|
@ -55,7 +55,7 @@ RawSocketImpl::RawSocketImpl(IPAddress::Family family, int proto)
|
||||
{
|
||||
if (family == IPAddress::IPv4)
|
||||
init2(AF_INET, proto);
|
||||
#if POCO_HAVE_IPv6
|
||||
#if defined(POCO_HAVE_IPv6)
|
||||
else if (family == IPAddress::IPv6)
|
||||
init2(AF_INET6, proto);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user