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:53:25 +0000 (12:53 +0200)
metze
(cherry picked from commit 74707e8e8e1be2cbaa71fb0442957be2e663cbde)

lib/socket_wrapper/socket_wrapper.c

index 193e7a1a7c978c70e697570f037ad09bdabc2a5e..cdfdceef216da1ace192ccabb08763adb0adb8fd 100644 (file)
@@ -1101,8 +1101,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;
        }