mirror of
https://github.com/openwrt/telephony.git
synced 2025-12-21 19:14:34 +04:00
12 lines
384 B
Diff
12 lines
384 B
Diff
--- a/include/asterisk/lock.h
|
|
+++ b/include/asterisk/lock.h
|
|
@@ -70,7 +70,7 @@ extern "C" {
|
|
#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 */
|
|
|