socket_wrapper: fix the build on systems without ipv6 support
authorStefan Metzmacher <metze@samba.org>
Tue, 14 Apr 2009 10:45:48 +0000 (12:45 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 14 Apr 2009 10:47:18 +0000 (12:47 +0200)
metze

lib/socket_wrapper/socket_wrapper.c

index d3853de50d0c4b64995e3aeea5ed1b2d4869def8..d809d8a500d9b783cc4d4eec8f09ee64684dd5bc 100644 (file)
@@ -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;
        }