From 70747edc88e1933c7d84175314274214adc41947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Wed, 18 Jul 2018 19:53:17 +0900 Subject: Fixed FTBFS with libxml2 >= 2.9.8 Signed-off-by: Michele Calgaro (cherry picked from commit 9a0e63020401f11541d46104a01a09e805032223) --- kxsldbg/kxsldbgpart/libxsldbg/breakpoint.cpp | 4 ++++ kxsldbg/kxsldbgpart/libxsldbg/breakpoint.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/kxsldbg/kxsldbgpart/libxsldbg/breakpoint.cpp b/kxsldbg/kxsldbgpart/libxsldbg/breakpoint.cpp index 270ce82d..56a3ad20 100644 --- a/kxsldbg/kxsldbgpart/libxsldbg/breakpoint.cpp +++ b/kxsldbg/kxsldbgpart/libxsldbg/breakpoint.cpp @@ -283,7 +283,11 @@ breakPointItemNew(void) * Free memory associated with this break point */ void +#if LIBXML_VERSION >= 20908 +breakPointItemFree(void *payload, const xmlChar * name) +#else breakPointItemFree(void *payload, xmlChar * name) +#endif { Q_UNUSED(name); if (payload) { diff --git a/kxsldbg/kxsldbgpart/libxsldbg/breakpoint.h b/kxsldbg/kxsldbgpart/libxsldbg/breakpoint.h index 83f2e712..fd410366 100644 --- a/kxsldbg/kxsldbgpart/libxsldbg/breakpoint.h +++ b/kxsldbg/kxsldbgpart/libxsldbg/breakpoint.h @@ -486,7 +486,11 @@ extern "C" { */ #endif #endif +#if LIBXML_VERSION >= 20908 + void breakPointItemFree(void *payload, const xmlChar * name); +#else void breakPointItemFree(void *payload, xmlChar * name); +#endif -- cgit v1.2.1