[Libguestfs] [PATCH] fuse:remove the unused macro when fuse is not available

Wanlong Gao gaowanlong at cn.fujitsu.com
Sat Jul 21 01:11:57 UTC 2012


Just make gcc happy when fuse is not available.

Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com>
---
 src/fuse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fuse.c b/src/fuse.c
index 2bd6787..349a5b9 100644
--- a/src/fuse.c
+++ b/src/fuse.c
@@ -25,6 +25,7 @@
 #include <sys/types.h>
 #include <sys/wait.h>
 
+#if HAVE_FUSE
 /* See <attr/xattr.h> */
 #ifndef ENOATTR
 #define ENOATTR ENODATA
@@ -32,7 +33,6 @@
 
 #define FUSE_USE_VERSION 26
 
-#if HAVE_FUSE
 #include <fuse.h>
 #include <fuse_lowlevel.h>
 #endif
-- 
1.7.11.2.249.g31c7954




More information about the Libguestfs mailing list