From bd7729effaee0b3736f82cfb091e4e00e61c9e04 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 26 Nov 2014 18:49:34 +0100 Subject: [PATCH] Backport some fixes. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- debian/patches/abi_fix.patch | 14 ++++++++++++++ debian/patches/series | 2 ++ debian/patches/thread_proto_fix.patch | 13 +++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 debian/patches/abi_fix.patch create mode 100644 debian/patches/thread_proto_fix.patch diff --git a/debian/patches/abi_fix.patch b/debian/patches/abi_fix.patch new file mode 100644 index 0000000..c1ad83e --- /dev/null +++ b/debian/patches/abi_fix.patch @@ -0,0 +1,14 @@ +--- a/src/lib/LibCECC.cpp ++++ b/src/lib/LibCECC.cpp +@@ -346,6 +346,11 @@ + return cec_parser ? (cec_parser->PersistConfiguration(configuration) ? 1 : 0) : -1; + } + ++int cec_set_configuration(libcec_configuration *configuration) ++{ ++ return cec_set_configuration(static_cast(configuration)); ++} ++ + int cec_set_configuration(const libcec_configuration *configuration) + { + return cec_parser ? (cec_parser->SetConfiguration(configuration) ? 1 : 0) : -1; diff --git a/debian/patches/series b/debian/patches/series index 3af2378..f26e74a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,5 @@ gbp.conf.patch debian-packages-fixes.patch exynos-dpkg.patch +abi_fix.patch +thread_proto_fix.patch diff --git a/debian/patches/thread_proto_fix.patch b/debian/patches/thread_proto_fix.patch new file mode 100644 index 0000000..6e2959f --- /dev/null +++ b/debian/patches/thread_proto_fix.patch @@ -0,0 +1,13 @@ +--- a/src/lib/platform/threads/threads.h ++++ b/src/lib/platform/threads/threads.h +@@ -52,8 +52,9 @@ + if (ThreadsWait(m_thread, &retVal)){}; // silence unused warning + } + +- static void *ThreadHandler(CThread *thread) ++ static void *ThreadHandler(void *_thread) + { ++ CThread *thread = static_cast(_thread); + void *retVal = NULL; + + if (thread) -- 2.34.1