aports/main/asterisk/10-musl-mutex-init.patch
Duncan Bellamy 25ffac29e0 main/asterisk: upgrade to 16.11.0
* compile with CFLAGS='-DENABLE_SRTP_AES_256', from #11609
* update APKBUILD to use amove
* update license from SPDX
* add missing descriptions to patches, and openrc sub package
* remove empty doc sub package function
* make single line sub package format the same
* add support for unbound
2020-06-15 17:45:34 +03:00

14 lines
599 B
Diff

fix for compiling with musl
diff -ru asterisk-12.4.0.orig/include/asterisk/lock.h asterisk-12.4.0/include/asterisk/lock.h
--- asterisk-12.4.0.orig/include/asterisk/lock.h 2013-11-02 06:05:24.000000000 -0200
+++ asterisk-12.4.0/include/asterisk/lock.h 2014-08-04 16:00:29.811967599 -0300
@@ -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 */