tests: Protect IPv6 function in setup_echo_srv_tcp_ipv6
authorAndreas Schneider <asn@samba.org>
Mon, 5 Nov 2018 07:29:25 +0000 (08:29 +0100)
committerAndreas Schneider <asn@samba.org>
Tue, 6 Nov 2018 14:00:35 +0000 (15:00 +0100)
Fixes the build on OmniOS.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
tests/test_echo_tcp_bind.c

index 796c36211da418d17a2c0757f1f0cb90f8c79466..87183679725d0287bf4a55a33a3932b7f710e962 100644 (file)
@@ -26,12 +26,14 @@ static int setup_echo_srv_tcp_ipv4(void **state)
        return 0;
 }
 
+#ifdef HAVE_IPV6
 static int setup_echo_srv_tcp_ipv6(void **state)
 {
        torture_setup_echo_srv_tcp_ipv6(state);
 
        return 0;
 }
+#endif
 
 static int teardown(void **state)
 {