]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
fix building with libxml 2.12.0 849/head
authorTomasz Kłoczko <kloczek@github.com>
Wed, 22 Nov 2023 12:59:42 +0000 (12:59 +0000)
committerTomasz Kłoczko <kloczek@github.com>
Wed, 22 Nov 2023 13:01:21 +0000 (13:01 +0000)
Add missing header files requires on build with libxml 2.12.0.
Fixes #848

Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
snapper/Logger.cc
snapper/XmlFile.cc

index a21d730366f8b1a0578be56c892a38784b7f5e88..873d70a6961d74df89918360e41be23d7b5eabc3 100644 (file)
@@ -26,6 +26,7 @@
 #include <string.h>
 #include <sys/types.h>
 #include <libxml/tree.h>
+#include <libxml/xmlerror.h>
 #include <string>
 #include <boost/thread.hpp>
 
index f0cace8f1f19d0cb0cb64f86e9262ec199821198..75eda3f91de39ed6620f70326c301b83fec99b9e 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <cstring>
 #include <unistd.h>
+#include <libxml/parser.h>
 
 #include "snapper/Exception.h"
 #include "snapper/XmlFile.h"