torture: add HAVE_IPV6 guard to torture_server_address()
authorMichael Adam <obnox@samba.org>
Wed, 4 Jun 2014 07:35:02 +0000 (09:35 +0200)
committerAndreas Schneider <asn@samba.org>
Wed, 9 Jul 2014 15:44:23 +0000 (17:44 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
tests/torture.c

index 9a1d1ce36ebeef5cdaeebafeeceb5aa137d07cc2..02ddc963c59a09327c7febe5aa37c55d8a5ae0af 100644 (file)
@@ -70,6 +70,7 @@ const char *torture_server_address(int family)
 
                return TORTURE_ECHO_SRV_IPV4;
        }
+#ifdef HAVE_IPV6
        case AF_INET6: {
                const char *ip6 = getenv("TORTURE_SERVER_ADDRESS_IPV6");
 
@@ -79,6 +80,7 @@ const char *torture_server_address(int family)
 
                return TORTURE_ECHO_SRV_IPV6;
        }
+#endif
        default:
                return NULL;
        }