mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
libreplace-waf: Only check for _np functions if standard functions are not available
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
4ea036c26d
commit
4baa2d021c
@ -458,18 +458,24 @@ removeea setea
|
|||||||
if conf.CONFIG_SET('HAVE_PTHREAD'):
|
if conf.CONFIG_SET('HAVE_PTHREAD'):
|
||||||
|
|
||||||
conf.CHECK_DECLS('pthread_mutexattr_setrobust', headers='pthread.h')
|
conf.CHECK_DECLS('pthread_mutexattr_setrobust', headers='pthread.h')
|
||||||
|
if not conf.CONFIG_SET('HAVE_DECL_PTHREAD_MUTEXATTR_SETROBUST'):
|
||||||
|
conf.CHECK_DECLS('pthread_mutexattr_setrobust_np',
|
||||||
|
headers='pthread.h')
|
||||||
|
|
||||||
conf.CHECK_FUNCS_IN('pthread_mutexattr_setrobust', 'pthread',
|
conf.CHECK_FUNCS_IN('pthread_mutexattr_setrobust', 'pthread',
|
||||||
checklibc=True, headers='pthread.h')
|
checklibc=True, headers='pthread.h')
|
||||||
|
if not conf.CONFIG_SET('HAVE_PTHREAD_MUTEXATTR_SETROBUST'):
|
||||||
conf.CHECK_DECLS('pthread_mutexattr_setrobust_np', headers='pthread.h')
|
|
||||||
conf.CHECK_FUNCS_IN('pthread_mutexattr_setrobust_np', 'pthread',
|
conf.CHECK_FUNCS_IN('pthread_mutexattr_setrobust_np', 'pthread',
|
||||||
checklibc=True, headers='pthread.h')
|
checklibc=True, headers='pthread.h')
|
||||||
|
|
||||||
conf.CHECK_DECLS('pthread_mutex_consistent', headers='pthread.h')
|
conf.CHECK_DECLS('pthread_mutex_consistent', headers='pthread.h')
|
||||||
|
if not conf.CONFIG_SET('HAVE_DECL_PTHREAD_MUTEX_CONSISTENT'):
|
||||||
|
conf.CHECK_DECLS('pthread_mutex_consistent_np',
|
||||||
|
headers='pthread.h')
|
||||||
|
|
||||||
conf.CHECK_FUNCS_IN('pthread_mutex_consistent', 'pthread',
|
conf.CHECK_FUNCS_IN('pthread_mutex_consistent', 'pthread',
|
||||||
checklibc=True, headers='pthread.h')
|
checklibc=True, headers='pthread.h')
|
||||||
|
if not conf.CONFIG_SET('HAVE_PTHREAD_MUTEX_CONSISTENT'):
|
||||||
conf.CHECK_DECLS('pthread_mutex_consistent_np', headers='pthread.h')
|
|
||||||
conf.CHECK_FUNCS_IN('pthread_mutex_consistent_np', 'pthread',
|
conf.CHECK_FUNCS_IN('pthread_mutex_consistent_np', 'pthread',
|
||||||
checklibc=True, headers='pthread.h')
|
checklibc=True, headers='pthread.h')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user