From: Volker Lendecke Date: Wed, 18 Jan 2017 11:58:19 +0000 (+0100) Subject: ctdb: Only build test_mutex_raw.c on Linux X-Git-Tag: talloc-2.1.9~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02380ca3e75e5aae99f5024b4790e6e2bbdd8594;p=thirdparty%2Fsamba.git ctdb: Only build test_mutex_raw.c on Linux This is pretty glibc on Linux specific. FreeBSD 11 also has robust mutexes and can't build this. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/ctdb/wscript b/ctdb/wscript index 13384c81b9a..02331499636 100644 --- a/ctdb/wscript +++ b/ctdb/wscript @@ -830,7 +830,7 @@ def build(bld): ib_deps, install_path='${CTDB_TEST_LIBEXECDIR}') - if bld.env.HAVE_ROBUST_MUTEXES: + if bld.env.HAVE_ROBUST_MUTEXES and sys.platform.startswith('linux'): bld.SAMBA_BINARY('test_mutex_raw', source='tests/src/test_mutex_raw.c', deps='pthread',