From: Michal Privoznik Date: Tue, 22 Feb 2022 11:51:32 +0000 (+0100) Subject: lxc_fuse.h: Don't include lxc_conf.h X-Git-Tag: v8.2.0-rc1~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc0c775b6283c31ce8b9a2963f5605c5f79cd28a;p=thirdparty%2Flibvirt.git lxc_fuse.h: Don't include lxc_conf.h Nothing in the lxc_fuse.h header file warrants inclusion of lxc_conf.h. If anything, virconftypes.h must be included because of virDomainDef required by lxcSetupFuse(). It's actually lxc_fuse.c that requires some macros from lxc_fuse.h (e.g. LXC_STATE_DIR). Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko --- diff --git a/src/lxc/lxc_fuse.c b/src/lxc/lxc_fuse.c index 7b95629955..0550ff5ab4 100644 --- a/src/lxc/lxc_fuse.c +++ b/src/lxc/lxc_fuse.c @@ -27,6 +27,7 @@ #include "lxc_fuse.h" #include "lxc_cgroup.h" +#include "lxc_conf.h" #include "virerror.h" #include "virfile.h" #include "virbuffer.h" diff --git a/src/lxc/lxc_fuse.h b/src/lxc/lxc_fuse.h index 7052391a7b..195e1e431a 100644 --- a/src/lxc/lxc_fuse.h +++ b/src/lxc/lxc_fuse.h @@ -26,7 +26,7 @@ # include #endif -#include "lxc_conf.h" +#include "virconftypes.h" typedef struct virLXCFuse virLXCFuse;