summaryrefslogtreecommitdiff
path: root/package/asterisk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-27 17:07:45 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-27 17:16:43 +0200
commit157312f822ce0149a52d5c5ef9097b5e4be49da3 (patch)
tree90b671d46d63b3faa0e4286c725b2d4fcfdcd178 /package/asterisk
parent8bda1953a66d0b7d533547736e0c6867bd856178 (diff)
asterisk: fix compile with gcc5
Diffstat (limited to 'package/asterisk')
-rw-r--r--package/asterisk/Makefile2
-rw-r--r--package/asterisk/patches/patch-main_tcptls_c16
2 files changed, 17 insertions, 1 deletions
diff --git a/package/asterisk/Makefile b/package/asterisk/Makefile
index 05f1a4290..27eb3b924 100644
--- a/package/asterisk/Makefile
+++ b/package/asterisk/Makefile
@@ -72,7 +72,6 @@ CONFIGURE_ARGS= --with-z=${STAGING_TARGET_DIR}/usr \
--without-tonezone \
--without-asound \
--without-curses \
- --without-gtk \
--without-gtk2 \
--without-h323 \
--without-iksemel \
@@ -117,6 +116,7 @@ endif
INSTALL_STYLE:= manual
+TARGET_CFLAGS+= -fgnu89-inline
TARGET_LDFLAGS+= -lm -ltinfo -ldl -lpthread
MAKE_ENV= ASTCFLAGS="${TARGET_CPPFLAGS} -DHAVE_STRTOQ" \
ASTLDFLAGS="${TARGET_LDFLAGS}"
diff --git a/package/asterisk/patches/patch-main_tcptls_c b/package/asterisk/patches/patch-main_tcptls_c
new file mode 100644
index 000000000..bf1c21c25
--- /dev/null
+++ b/package/asterisk/patches/patch-main_tcptls_c
@@ -0,0 +1,16 @@
+--- asterisk-1.8.28.2.orig/main/tcptls.c 2014-06-13 07:06:27.000000000 +0200
++++ asterisk-1.8.28.2/main/tcptls.c 2016-09-25 20:47:30.313327069 +0200
+@@ -753,9 +753,12 @@ static int __ssl_setup(struct ast_tls_co
+ cfg->ssl_ctx = SSL_CTX_new(SSLv2_client_method());
+ } else
+ #endif
++#ifndef OPENSSL_NO_SSL3_METHOD
+ if (ast_test_flag(&cfg->flags, AST_SSL_SSLV3_CLIENT)) {
+ cfg->ssl_ctx = SSL_CTX_new(SSLv3_client_method());
+- } else if (ast_test_flag(&cfg->flags, AST_SSL_TLSV1_CLIENT)) {
++ } else
++#endif
++ if (ast_test_flag(&cfg->flags, AST_SSL_TLSV1_CLIENT)) {
+ cfg->ssl_ctx = SSL_CTX_new(TLSv1_client_method());
+ } else {
+ /* SSLv23_client_method() sends SSLv2, this was the original