diff options
author | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-19 08:14:12 -0500 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-10-19 13:09:26 -0700 |
commit | 620785df4e57b72471ff0315e22e0d2f28a2b1a5 (patch) | |
tree | 2b75d54ccbeec93e67a5a5b6ad77d84e69fbf7a3 /source/lib/interfaces.c | |
parent | 641d0968da73dca24a3ddaf93451de1200d3c09b (diff) | |
download | samba-620785df4e57b72471ff0315e22e0d2f28a2b1a5.tar.gz samba-620785df4e57b72471ff0315e22e0d2f28a2b1a5.tar.xz samba-620785df4e57b72471ff0315e22e0d2f28a2b1a5.zip |
Add test for "struct in6_addr" to the HAVE_IPV6 configure test.
Also make use of "if defined(HAVE_IPV6)" rather than testing for
AF_INET6 since this is not sufficient on HP-UX 11.11 to ensure
a working IPv6 implementation.
Diffstat (limited to 'source/lib/interfaces.c')
-rw-r--r-- | source/lib/interfaces.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/interfaces.c b/source/lib/interfaces.c index 2b93a5ba391..3b15e3e87b9 100644 --- a/source/lib/interfaces.c +++ b/source/lib/interfaces.c @@ -128,7 +128,7 @@ static int _get_interfaces(struct iface_struct *ifaces, int max_interfaces) continue; } -#ifdef AF_INET6 +#if defined(HAVE_IPV6) if (ifptr->ifa_addr->sa_family == AF_INET6) { copy_size = sizeof(struct sockaddr_in6); } @@ -496,7 +496,7 @@ static int iface_comp(struct iface_struct *i1, struct iface_struct *i2) { int r; -#ifdef AF_INET6 +#if defined(HAVE_IPV6) /* * If we have IPv6 - sort these interfaces lower * than any IPv4 ones. |