From db7070c65a8732996a11ce05287a2380278ec6a8 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 5 Nov 2018 08:29:25 +0100 Subject: tests: Protect IPv6 function in setup_echo_srv_tcp_ipv6 Fixes the build on OmniOS. Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme --- tests/test_echo_tcp_bind.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/test_echo_tcp_bind.c') diff --git a/tests/test_echo_tcp_bind.c b/tests/test_echo_tcp_bind.c index 796c362..8718367 100644 --- a/tests/test_echo_tcp_bind.c +++ b/tests/test_echo_tcp_bind.c @@ -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) { -- cgit