diff options
author | Volker Lendecke <vl@samba.org> | 2013-02-06 12:16:02 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-05-22 21:05:15 +0200 |
commit | 549338ff38e8689666890348d678bec7e1b0fe5e (patch) | |
tree | a559a823e6be5117582ac5d4b52d0bea3145a086 /lib/replace/system/threads.h | |
parent | 4baa2d021cb1be0ca19bad9da0f6300a95c9a722 (diff) | |
download | samba-549338ff38e8689666890348d678bec7e1b0fe5e.tar.gz |
libreplace: Define PTHREAD_MUTEX_ROBUST along with pthread_mutexattr_setrobust
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/threads.h')
-rw-r--r-- | lib/replace/system/threads.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/replace/system/threads.h b/lib/replace/system/threads.h index 3aca088c132..25d3502aa64 100644 --- a/lib/replace/system/threads.h +++ b/lib/replace/system/threads.h @@ -29,7 +29,15 @@ #if defined(HAVE_PTHREAD_MUTEXATTR_SETROBUST_NP) && \ !defined(HAVE_PTHREAD_MUTEXATTR_SETROBUST) + #define pthread_mutexattr_setrobust pthread_mutexattr_setrobust_np + +/* + * We assume that PTHREAD_MUTEX_ROBUST_NP goes along with + * pthread_mutexattr_setrobust_np() + */ +#define PTHREAD_MUTEX_ROBUST PTHREAD_MUTEX_ROBUST_NP + #endif #if defined(HAVE_PTHREAD_MUTEX_CONSISTENT_NP) && \ |