]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
waf: use _POSIX_PTHREAD_SEMANTIC on Solaris
authorBjörn Jacke <bj@sernet.de>
Sun, 18 Oct 2020 18:15:36 +0000 (20:15 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 10 Nov 2020 06:53:42 +0000 (06:53 +0000)
Solaris uses POSIX draft function calls by default for a number of functions,
unless you set _POSIX_PTHREAD_SEMANTIC

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/wscript

index f0b679257b7d5d9aea9e869662a9cf97188e29d4..f68f46e03ec7b7341e4a80bebe3a44904a441d8b 100644 (file)
@@ -426,6 +426,10 @@ def configure(conf):
             strict=True,
             msg='Checking for __attribute__')
 
+    # Solaris by defauls uses draft versions of some functions unless you set _POSIX_PTHREAD_SEMANTICS
+    if sys.platform.startswith('sunos'):
+        conf.DEFINE('_POSIX_PTHREAD_SEMANTICS', 1)
+
     if sys.platform.startswith('aix'):
         conf.DEFINE('_ALL_SOURCE', 1, add_to_cflags=True)
         # Might not be needed if ALL_SOURCE is defined