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 #include +#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;