summaryrefslogtreecommitdiff
path: root/source3/lib
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 09:32:05 +0100
commita73f4bc27f79f7920a881fcb0050621119591e64 (patch)
tree27a4fd62d8025d6f79ab4c92bce136c8d8049ed5 /source3/lib
parent5827e84d88c0216c9e9e2373378b6992ce8357c5 (diff)
downloadsamba-a73f4bc27f79f7920a881fcb0050621119591e64.tar.gz
samba-a73f4bc27f79f7920a881fcb0050621119591e64.tar.bz2
samba-a73f4bc27f79f7920a881fcb0050621119591e64.zip
libreplace: ifdef out ip6 code if unsupported.
Michael (cherry picked from commit 54cc0df4dbf6d63a9b94e1ac6af4ec7f7803bc30) (This used to be commit 1ff0b616a9cb029040031f797b52112d4973e1eb)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/replace/test/getifaddrs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/replace/test/getifaddrs.c b/source3/lib/replace/test/getifaddrs.c
index c78c9b545e..8b00ac2f40 100644
--- a/source3/lib/replace/test/getifaddrs.c
+++ b/source3/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;
}