]> git.pld-linux.org Git - packages/zabbix.git/commitdiff
add missing include to fix build with libxml2 >= 2.12
authorJan Palus <atler@pld-linux.org>
Fri, 1 Dec 2023 11:43:39 +0000 (12:43 +0100)
committerJan Palus <atler@pld-linux.org>
Fri, 1 Dec 2023 11:43:39 +0000 (12:43 +0100)
missing-includes.patch [new file with mode: 0644]
zabbix.spec

diff --git a/missing-includes.patch b/missing-includes.patch
new file mode 100644 (file)
index 0000000..662dbc5
--- /dev/null
@@ -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 <libxml/parser.h>
+ #     include <libxml/xpath.h>
+ #endif
index f877c09fd1a4646e5acb446226ee73e181d4acb4..193ab7c5ffc9c4dc7de4a5043cd51410ae7c1e64 100644 (file)
@@ -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}
This page took 0.073542 seconds and 4 git commands to generate.