1 Index: yate/engine/Mutex.cpp
2 ===================================================================
3 --- yate.orig/engine/Mutex.cpp
4 +++ yate/engine/Mutex.cpp
5 @@ -30,6 +30,10 @@ typedef HANDLE HSEMAPHORE;
9 +#ifndef PTHREAD_MUTEX_RECURSIVE_NP
10 +#define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE
15 #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
16 Index: yate/configure.ac
17 ===================================================================
18 --- yate.orig/configure.ac
20 @@ -257,7 +257,7 @@ AC_TRY_COMPILE([
23 pthread_mutexattr_t attr;
24 -pthread_mutexattr_settype(&attr,PTHREAD_MUTEX_RECURSIVE_NP);
25 +pthread_mutexattr_settype(&attr,PTHREAD_MUTEX_RECURSIVE);
27 have_mutex_settype="yes",
28 have_mutex_settype="no"