From: Björn Jacke Date: Sun, 18 Oct 2020 18:15:36 +0000 (+0200) Subject: waf: use _POSIX_PTHREAD_SEMANTIC on Solaris X-Git-Tag: talloc-2.3.2~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a223c5b5b7f6446d1e52065679c5c26d02b97ef6;p=thirdparty%2Fsamba.git waf: use _POSIX_PTHREAD_SEMANTIC on Solaris Solaris uses POSIX draft function calls by default for a number of functions, unless you set _POSIX_PTHREAD_SEMANTIC Signed-off-by: Bjoern Jacke Reviewed-by: Andrew Bartlett --- diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript index f0b679257b7..f68f46e03ec 100644 --- a/buildtools/wafsamba/wscript +++ b/buildtools/wafsamba/wscript @@ -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