ctdb: Only build test_mutex_raw.c on Linux
authorVolker Lendecke <vl@samba.org>
Wed, 18 Jan 2017 11:58:19 +0000 (12:58 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 15 Feb 2017 01:28:16 +0000 (02:28 +0100)
This is pretty glibc on Linux specific. FreeBSD 11 also has
robust mutexes and can't build this.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
ctdb/wscript

index 13384c81b9a275f0ba0248f80e38b06e6742499b..02331499636d64e775dbc9dd2a56c8f63805972e 100644 (file)
@@ -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',