From e5df09bb2b7aaeef0d3127ad85371eab78702060 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 21 Jan 2014 09:52:06 +0100 Subject: cmake: Only build test_sendmsg_recvmsg_fd if we have msg_control. --- tests/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c626c02..53d458c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -25,8 +25,11 @@ set(SWRAP_TESTS test_echo_tcp_writev_readv test_echo_udp_sendto_recvfrom test_echo_udp_send_recv - test_echo_udp_sendmsg_recvmsg - test_sendmsg_recvmsg_fd) + test_echo_udp_sendmsg_recvmsg) + +if (HAVE_STRUCT_MSGHDR_MSG_CONTROL) + set(SWRAP_TESTS ${SWRAP_TESTS} test_sendmsg_recvmsg_fd) +endif (HAVE_STRUCT_MSGHDR_MSG_CONTROL) foreach(_SWRAP_TEST ${SWRAP_TESTS}) add_cmocka_test(${_SWRAP_TEST} ${_SWRAP_TEST}.c ${TORTURE_LIBRARY}) -- cgit