summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2012-04-19 23:35:24 +0200
committerArnaud Versini <arnaud.versini@gmail.com>2012-04-19 23:35:24 +0200
commit2bf32c53740313afe473056e55a953b23433e25d (patch)
treefc52d4b25e9d821785533680bd97d8e51a1b5842 /sal
parent409f11ae387c859dcf9275c08093649a676e1f9e (diff)
Revert "Remove unnecessary hack on Linux by using pthread_mutexattr_settype"
Build error on tinderboxes.
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/mutex.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sal/osl/unx/mutex.c b/sal/osl/unx/mutex.c
index 0f64104348e1..c784113d6393 100644
--- a/sal/osl/unx/mutex.c
+++ b/sal/osl/unx/mutex.c
@@ -34,6 +34,12 @@
#include <pthread.h>
#include <stdlib.h>
+#if defined LINUX /* bad hack */
+int pthread_mutexattr_setkind_np(pthread_mutexattr_t *, int);
+#define pthread_mutexattr_settype pthread_mutexattr_setkind_np
+#define PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
+#endif
+
typedef struct _oslMutexImpl
{
pthread_mutex_t mutex;