From cc0c775b6283c31ce8b9a2963f5605c5f79cd28a Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Tue, 22 Feb 2022 12:51:32 +0100 Subject: [PATCH] lxc_fuse.h: Don't include lxc_conf.h MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/lxc/lxc_fuse.c | 1 + src/lxc/lxc_fuse.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; -- 2.47.2