aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-11-05 08:29:25 +0100
committerAndreas Schneider <asn@samba.org>2018-11-06 15:00:35 +0100
commitdb7070c65a8732996a11ce05287a2380278ec6a8 (patch)
tree8f10d27e1de53111ecbbb7b74d2b6b00c9af1480
parentf690f8c0873d87359f9d3c11e46c8c4dc185af0e (diff)
downloadsocket_wrapper-db7070c65a8732996a11ce05287a2380278ec6a8.tar.gz
socket_wrapper-db7070c65a8732996a11ce05287a2380278ec6a8.tar.xz
socket_wrapper-db7070c65a8732996a11ce05287a2380278ec6a8.zip
tests: Protect IPv6 function in setup_echo_srv_tcp_ipv6
Fixes the build on OmniOS. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--tests/test_echo_tcp_bind.c2
1 files changed, 2 insertions, 0 deletions
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)
{