diff options
| author | Jiri Slachta | 2017-12-02 17:42:28 +0000 |
|---|---|---|
| committer | GitHub | 2017-12-02 17:42:28 +0000 |
| commit | 9b73c5230524afa4740226661352942ead5a5450 (patch) | |
| tree | 3e7edebeb47a2afcc1370b6cdca8cff226a01395 | |
| parent | bf061363b3f9620194d50ea9a0ebd8585151b394 (diff) | |
| parent | 71ab3d239a3f2fc275f454c7ee7359679f6f2762 (diff) | |
| download | telephony-9b73c5230524afa4740226661352942ead5a5450.tar.gz | |
Merge pull request #214 from micmac1/fix-module-load-failure
asterisk-15.x: add 053-musl-mutex-init.patch
| -rw-r--r-- | net/asterisk-15.x/Makefile | 2 | ||||
| -rw-r--r-- | net/asterisk-15.x/patches/053-musl-mutex-init.patch | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/net/asterisk-15.x/Makefile b/net/asterisk-15.x/Makefile index a368a75..412e2bb 100644 --- a/net/asterisk-15.x/Makefile +++ b/net/asterisk-15.x/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=asterisk15 PKG_VERSION:=15.1.2 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/asterisk/releases diff --git a/net/asterisk-15.x/patches/053-musl-mutex-init.patch b/net/asterisk-15.x/patches/053-musl-mutex-init.patch new file mode 100644 index 0000000..98cdccf --- /dev/null +++ b/net/asterisk-15.x/patches/053-musl-mutex-init.patch @@ -0,0 +1,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 */ + |