mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
ITS#8330 Fix robust mutex detection for glibc 2.10 and 2.11
pthread_mutexattr_setrobust and pthread_mutex_consistent are provided since 2.12 not 2.10: https://sourceware.org/git/?p=glibc.git;a=commit;h=402cd98775db1478f64c9b0dbe00664b89eb2773 https://sourceware.org/git/?p=glibc.git;a=commit;h=78ee21859939ff75ccf8bbe00499b0c462df2e2d
This commit is contained in:
parent
8738e5e306
commit
19d135af54
@ -256,8 +256,8 @@ typedef SSIZE_T ssize_t;
|
|||||||
# define MDB_USE_ROBUST 0
|
# define MDB_USE_ROBUST 0
|
||||||
# else
|
# else
|
||||||
# define MDB_USE_ROBUST 1
|
# define MDB_USE_ROBUST 1
|
||||||
/* glibc < 2.10 only provided _np API */
|
/* glibc < 2.12 only provided _np API */
|
||||||
# if defined(__GLIBC__) && GLIBC_VER < 0x02000a
|
# if defined(__GLIBC__) && GLIBC_VER < 0x02000c
|
||||||
# define PTHREAD_MUTEX_ROBUST PTHREAD_MUTEX_ROBUST_NP
|
# define PTHREAD_MUTEX_ROBUST PTHREAD_MUTEX_ROBUST_NP
|
||||||
# define pthread_mutexattr_setrobust(attr, flag) pthread_mutexattr_setrobust_np(attr, flag)
|
# define pthread_mutexattr_setrobust(attr, flag) pthread_mutexattr_setrobust_np(attr, flag)
|
||||||
# define pthread_mutex_consistent(mutex) pthread_mutex_consistent_np(mutex)
|
# define pthread_mutex_consistent(mutex) pthread_mutex_consistent_np(mutex)
|
||||||
|
Loading…
Reference in New Issue
Block a user