summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-02-29 02:43:24 +0100
committerMichael Adam <obnox@samba.org>2008-02-29 02:43:24 +0100
commitabb9356b4f78bcd64de6c53f6ce6b1fda05b42e2 (patch)
tree5ff96dee9641af764708ba3ebc667f5bee483f3f
parentf21aac60d9937d11f3019251f1960b51b68c5e54 (diff)
downloadsamba-abb9356b4f78bcd64de6c53f6ce6b1fda05b42e2.tar.gz
samba-abb9356b4f78bcd64de6c53f6ce6b1fda05b42e2.tar.bz2
samba-abb9356b4f78bcd64de6c53f6ce6b1fda05b42e2.zip
libreplace: ifdef out ip6 code if unsupported.
Michael (This used to be commit 54cc0df4dbf6d63a9b94e1ac6af4ec7f7803bc30)
-rw-r--r--source4/lib/replace/test/getifaddrs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/replace/test/getifaddrs.c b/source4/lib/replace/test/getifaddrs.c
index c78c9b545e..8b00ac2f40 100644
--- a/source4/lib/replace/test/getifaddrs.c
+++ b/source4/lib/replace/test/getifaddrs.c
@@ -39,11 +39,13 @@ static const char *format_sockaddr(struct sockaddr *addr,
&((struct sockaddr_in *)addr)->sin_addr,
addrstring,
addrlen);
+#ifdef HAVE_STRUCT_SOCKADDR_IN6
} else if (addr->sa_family == AF_INET6) {
result = rep_inet_ntop(AF_INET6,
&((struct sockaddr_in6 *)addr)->sin6_addr,
addrstring,
addrlen);
+#endif
}
return result;
}