yate: Bump to version 6.0.0
[feed/telephony.git] / net / yate / patches / 100-non-gnu-mutex-type.patch
1 --- a/engine/Mutex.cpp
2 +++ b/engine/Mutex.cpp
3 @@ -30,6 +30,10 @@ typedef HANDLE HSEMAPHORE;
4 #include <semaphore.h>
5 #include <time.h>
6
7 +#ifndef PTHREAD_MUTEX_RECURSIVE_NP
8 +#define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE
9 +#endif
10 +
11 #ifdef MUTEX_HACK
12 extern "C" {
13 #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
14 --- a/configure.ac
15 +++ b/configure.ac
16 @@ -264,7 +264,7 @@ AC_TRY_COMPILE([
17 #include <pthread.h>
18 ],[
19 pthread_mutexattr_t attr;
20 -pthread_mutexattr_settype(&attr,PTHREAD_MUTEX_RECURSIVE_NP);
21 +pthread_mutexattr_settype(&attr,PTHREAD_MUTEX_RECURSIVE);
22 ],
23 have_mutex_settype="yes",
24 have_mutex_settype="no"