[Libreoffice-commits] .: sal/osl
Arnaud Versini
aversini at kemper.freedesktop.org
Thu Apr 19 14:39:38 PDT 2012
sal/osl/unx/mutex.c | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 2bf32c53740313afe473056e55a953b23433e25d
Author: Arnaud Versini <arnaud.versini at gmail.com>
Date: Thu Apr 19 23:35:24 2012 +0200
Revert "Remove unnecessary hack on Linux by using pthread_mutexattr_settype"
Build error on tinderboxes.
diff --git a/sal/osl/unx/mutex.c b/sal/osl/unx/mutex.c
index 0f64104..c784113 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;
More information about the Libreoffice-commits
mailing list