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 <mprivozn(a)redhat.com>
---
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 <fuse.h>
#endif
-#include "lxc_conf.h"
+#include "virconftypes.h"
typedef struct virLXCFuse virLXCFuse;
--
2.34.1