mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
libreplace: Add support for pthread_mutex_consistent
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
1993f605a4
commit
4ea036c26d
@ -32,4 +32,9 @@
|
||||
#define pthread_mutexattr_setrobust pthread_mutexattr_setrobust_np
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_PTHREAD_MUTEX_CONSISTENT_NP) && \
|
||||
!defined(HAVE_PTHREAD_MUTEX_CONSISTENT)
|
||||
#define pthread_mutex_consistent pthread_mutex_consistent_np
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -465,8 +465,18 @@ removeea setea
|
||||
conf.CHECK_FUNCS_IN('pthread_mutexattr_setrobust_np', 'pthread',
|
||||
checklibc=True, headers='pthread.h')
|
||||
|
||||
if (conf.CONFIG_SET('HAVE_PTHREAD_MUTEXATTR_SETROBUST') or
|
||||
conf.CONFIG_SET('HAVE_PTHREAD_MUTEXATTR_SETROBUST_NP')):
|
||||
conf.CHECK_DECLS('pthread_mutex_consistent', headers='pthread.h')
|
||||
conf.CHECK_FUNCS_IN('pthread_mutex_consistent', 'pthread',
|
||||
checklibc=True, headers='pthread.h')
|
||||
|
||||
conf.CHECK_DECLS('pthread_mutex_consistent_np', headers='pthread.h')
|
||||
conf.CHECK_FUNCS_IN('pthread_mutex_consistent_np', 'pthread',
|
||||
checklibc=True, headers='pthread.h')
|
||||
|
||||
if ((conf.CONFIG_SET('HAVE_PTHREAD_MUTEXATTR_SETROBUST') or
|
||||
conf.CONFIG_SET('HAVE_PTHREAD_MUTEXATTR_SETROBUST_NP')) and
|
||||
(conf.CONFIG_SET('HAVE_PTHREAD_MUTEX_CONSISTENT') or
|
||||
conf.CONFIG_SET('HAVE_PTHREAD_MUTEX_CONSISTENT_NP'))):
|
||||
conf.DEFINE('HAVE_ROBUST_MUTEXES', 1)
|
||||
|
||||
conf.CHECK_FUNCS_IN('crypt', 'crypt', checklibc=True)
|
||||
|
Loading…
Reference in New Issue
Block a user