summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-04-14 12:45:48 +0200
committerStefan Metzmacher <metze@samba.org>2009-04-14 12:47:18 +0200
commit74707e8e8e1be2cbaa71fb0442957be2e663cbde (patch)
tree02613368e206a2d432fdabae5508184151be1b28
parenta2ef1fee69771f58c27604ef213405031f42ff96 (diff)
downloadsamba-74707e8e8e1be2cbaa71fb0442957be2e663cbde.tar.gz
samba-74707e8e8e1be2cbaa71fb0442957be2e663cbde.tar.bz2
samba-74707e8e8e1be2cbaa71fb0442957be2e663cbde.zip
socket_wrapper: fix the build on systems without ipv6 support
metze
-rw-r--r--lib/socket_wrapper/socket_wrapper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c
index d3853de50d..d809d8a500 100644
--- a/lib/socket_wrapper/socket_wrapper.c
+++ b/lib/socket_wrapper/socket_wrapper.c
@@ -1102,8 +1102,10 @@ static uint8_t *swrap_marshall_packet(struct socket_info *si,
switch (si->family) {
case AF_INET:
break;
+#ifdef HAVE_IPV6
case AF_INET6:
break;
+#endif
default:
return NULL;
}