From 0fe180a3d1251fb2f74c376e6dcabc2a0d94548e Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Fri, 1 Dec 2023 12:43:39 +0100 Subject: [PATCH] add missing include to fix build with libxml2 >= 2.12 --- missing-includes.patch | 10 ++++++++++ zabbix.spec | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 missing-includes.patch diff --git a/missing-includes.patch b/missing-includes.patch new file mode 100644 index 0000000..662dbc5 --- /dev/null +++ b/missing-includes.patch @@ -0,0 +1,10 @@ +--- zabbix-6.0.23/src/libs/zbxxml/xml.c.orig 2023-10-31 07:26:29.368117699 +0100 ++++ zabbix-6.0.23/src/libs/zbxxml/xml.c 2023-12-01 12:41:09.132402761 +0100 +@@ -23,6 +23,7 @@ + #include "zbxvariant.h" + + #ifdef HAVE_LIBXML2 ++# include + # include + #endif + diff --git a/zabbix.spec b/zabbix.spec index f877c09..193ab7c 100644 --- a/zabbix.spec +++ b/zabbix.spec @@ -52,6 +52,7 @@ Patch1: sqlite3_dbname.patch Patch2: always_compile_ipc.patch Patch3: go-destdir.patch Patch4: go-vendor.patch +Patch5: missing-includes.patch URL: https://www.zabbix.com/ BuildRequires: OpenIPMI-devel BuildRequires: autoconf @@ -360,6 +361,7 @@ This package provides the Zabbix Java Gateway. %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build %{__libtoolize} -- 2.44.0