summaryrefslogtreecommitdiff
path: root/net/asterisk/patches/053-musl-mutex-init.patch
blob: 98cdccf3d69347f3c65c045f712f6db5fe320748 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/include/asterisk/lock.h
+++ b/include/asterisk/lock.h
@@ -66,7 +66,7 @@
 #define AST_PTHREADT_NULL (pthread_t) -1
 #define AST_PTHREADT_STOP (pthread_t) -2
 
-#if (defined(SOLARIS) || defined(BSD))
+#if (defined(SOLARIS) || defined(BSD) || !defined(HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP))
 #define AST_MUTEX_INIT_W_CONSTRUCTORS
 #endif /* SOLARIS || BSD */