]> xenbits.xensource.com Git - libvirt.git/commitdiff
lxc_fuse: Move #include <fuse.h>
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 13 Apr 2020 14:01:42 +0000 (16:01 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 7 Mar 2022 13:01:48 +0000 (14:01 +0100)
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@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/lxc/lxc_fuse.c
src/lxc/lxc_fuse.h

index 0550ff5ab4ad3430799bcfb45cc817f165833efe..3732f2e245a50c2bbda00846458cc43f39f4f652 100644 (file)
 #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"
index 195e1e431a53ce0dcbbdbccd723119a8795b12a6..4065bff7ce35221fbf14ed38e29924d984e8384c 100644 (file)
 
 #pragma once
 
-#define FUSE_USE_VERSION 26
-
-#if WITH_FUSE
-# include <fuse.h>
-#endif
 
 #include "virconftypes.h"