diff options
| author | Volker Lendecke <vl@samba.org> | 2013-02-04 12:26:47 +0100 |
|---|---|---|
| committer | Jeremy Allison <jra@samba.org> | 2014-05-22 21:05:15 +0200 |
| commit | 4ea036c26dd921c4fce18db3e54f551e9f856a07 (patch) | |
| tree | bfe1d01e334468753e76a90396a7183394b5c7d9 /lib/replace/system | |
| parent | 1993f605a4452087e49ae552dc85aa940e827e20 (diff) | |
| download | samba-4ea036c26dd921c4fce18db3e54f551e9f856a07.tar.gz samba-4ea036c26dd921c4fce18db3e54f551e9f856a07.tar.xz samba-4ea036c26dd921c4fce18db3e54f551e9f856a07.zip | |
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>
Diffstat (limited to 'lib/replace/system')
| -rw-r--r-- | lib/replace/system/threads.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/replace/system/threads.h b/lib/replace/system/threads.h index 3d89bb2e98..3aca088c13 100644 --- a/lib/replace/system/threads.h +++ b/lib/replace/system/threads.h @@ -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 |
