asterisk-13.x: update to 13.8.0, fix several build issues
[feed/telephony.git] / net / asterisk-13.x / patches / 053-musl-mutex-init.patch
1 diff -ru asterisk-12.4.0.orig/include/asterisk/lock.h asterisk-12.4.0/include/asterisk/lock.h
2 --- asterisk-12.4.0.orig/include/asterisk/lock.h 2013-11-02 06:05:24.000000000 -0200
3 +++ asterisk-12.4.0/include/asterisk/lock.h 2014-08-04 16:00:29.811967599 -0300
4 @@ -68,7 +68,7 @@
5 #define AST_PTHREADT_NULL (pthread_t) -1
6 #define AST_PTHREADT_STOP (pthread_t) -2
7
8 -#if (defined(SOLARIS) || defined(BSD))
9 +#if (defined(SOLARIS) || defined(BSD) || !defined(HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP))
10 #define AST_MUTEX_INIT_W_CONSTRUCTORS
11 #endif /* SOLARIS || BSD */
12