[PATCH 04/17] lxc_fuse: Move #include <fuse.h>
Michal Privoznik
mprivozn at redhat.com
Mon Mar 7 09:00:54 UTC 2022
There is no need to include the fuse.h from the header file.
Move the include into the lxc_fuse.c then.
Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
src/lxc/lxc_fuse.c | 5 +++++
src/lxc/lxc_fuse.h | 5 -----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/lxc/lxc_fuse.c b/src/lxc/lxc_fuse.c
index 0550ff5ab4..3732f2e245 100644
--- a/src/lxc/lxc_fuse.c
+++ b/src/lxc/lxc_fuse.c
@@ -25,6 +25,11 @@
#include <mntent.h>
#include <unistd.h>
+#if WITH_FUSE
+# define FUSE_USE_VERSION 26
+# include <fuse.h>
+#endif
+
#include "lxc_fuse.h"
#include "lxc_cgroup.h"
#include "lxc_conf.h"
diff --git a/src/lxc/lxc_fuse.h b/src/lxc/lxc_fuse.h
index 195e1e431a..4065bff7ce 100644
--- a/src/lxc/lxc_fuse.h
+++ b/src/lxc/lxc_fuse.h
@@ -20,11 +20,6 @@
#pragma once
-#define FUSE_USE_VERSION 26
-
-#if WITH_FUSE
-# include <fuse.h>
-#endif
#include "virconftypes.h"
--
2.34.1
More information about the libvir-list
mailing list