Patch4: %{name}-udevadm-settle.patch
Patch5: vserver.patch
Patch6: bashisms.patch
+Patch7: missing-includes.patch
URL: https://www.libvirt.org/
BuildRequires: acl-devel
BuildRequires: attr-devel
%patch4 -p1
%{?with_vserver:%patch5 -p1}
%patch6 -p1
+%patch7 -p1
%if %{with static_libs}
%{__sed} -i '/^libvirt\(_admin\|_lxc\|_qemu\)\?_lib = / s/shared_library/library/' src/meson.build
--- /dev/null
+--- libvirt-8.10.0/src/util/virxml.c.orig 2022-12-01 10:55:15.000000000 +0100
++++ libvirt-8.10.0/src/util/virxml.c 2023-11-19 13:02:22.189721157 +0100
+@@ -24,6 +24,7 @@
+ #include <math.h> /* for isnan() */
+ #include <sys/stat.h>
+
++#include <libxml/xmlsave.h>
+ #include <libxml/xpathInternals.h>
+
+ #include "virerror.h"