python-sipsimple: Add patch to fix build with GCC 10
This commit is contained in:
parent
e7d03906b8
commit
b17e9702c7
@ -0,0 +1,25 @@
|
|||||||
|
Upstream: Submitted
|
||||||
|
Source: https://github.com/AGProjects/python-sipsimple/pull/10
|
||||||
|
|
||||||
|
From 052f7301a0c906c4117dff5453222f12e768bb49 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Tom Briden <tom@decompile.me.uk>
|
||||||
|
Date: Thu, 23 Jul 2020 19:22:30 +0100
|
||||||
|
Subject: [PATCH] Fix multiple definition of `PJ_ATTR_MAY_ALIAS' with GCC-10
|
||||||
|
|
||||||
|
---
|
||||||
|
deps/pjsip/pjlib/include/pj/list.h | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/deps/pjsip/pjlib/include/pj/list.h b/deps/pjsip/pjlib/include/pj/list.h
|
||||||
|
index 880f58d4..50510fe3 100644
|
||||||
|
--- a/deps/pjsip/pjlib/include/pj/list.h
|
||||||
|
+++ b/deps/pjsip/pjlib/include/pj/list.h
|
||||||
|
@@ -71,7 +71,7 @@ PJ_BEGIN_DECL
|
||||||
|
* must initialize the 'value' member to an appropriate value (typically the
|
||||||
|
* owner itself).
|
||||||
|
*/
|
||||||
|
-struct pj_list
|
||||||
|
+extern struct pj_list
|
||||||
|
{
|
||||||
|
PJ_DECL_LIST_MEMBER(void);
|
||||||
|
} PJ_ATTR_MAY_ALIAS; /* may_alias avoids warning with gcc-4.4 -Wall -O2 */
|
@ -50,6 +50,7 @@ DEPENDENCIES="
|
|||||||
DEFAULT_SRC_PREPARE_PATCHES=(
|
DEFAULT_SRC_PREPARE_PATCHES=(
|
||||||
"${FILES}"/${PNV}-fix-build.patch
|
"${FILES}"/${PNV}-fix-build.patch
|
||||||
"${FILES}"/0001-Fix-build-with-LibreSSL-2.7.patch
|
"${FILES}"/0001-Fix-build-with-LibreSSL-2.7.patch
|
||||||
|
"${FILES}"/${PN}-gcc10-fix.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
|
Loading…
Reference in New Issue
Block a user