From e6659f1d908eb9d6b6b04c63d489d3752e399ced Mon Sep 17 00:00:00 2001 From: dmiller Date: Tue, 9 Sep 2014 01:59:08 +0000 Subject: [PATCH] Fix initializer for struct in6_addr on AIX --- TargetGroup.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TargetGroup.cc b/TargetGroup.cc index 2d75bf8d3..1686ff3e0 100644 --- a/TargetGroup.cc +++ b/TargetGroup.cc @@ -548,8 +548,13 @@ static void ipv6_or_mask(struct in6_addr *a, const struct in6_addr *mask, const } void NetBlockIPv6Netmask::apply_netmask(int bits) { +#ifdef _AIX + const struct in6_addr zeros = { { { 0x00, 0x00, 0x00, 0x00 } } }; + const struct in6_addr ones = { { { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff } } }; +#else const struct in6_addr zeros = { { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} } }; const struct in6_addr ones = { { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} } }; +#endif struct in6_addr mask; if (bits > 128)