Wanlong Gao
2012-Jul-21 01:11 UTC
[Libguestfs] [PATCH] fuse:remove the unused macro when fuse is not available
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
Richard W.M. Jones
2012-Jul-21 07:31 UTC
[Libguestfs] [PATCH] fuse:remove the unused macro when fuse is not available
On Sat, Jul 21, 2012 at 09:11:57AM +0800, Wanlong Gao wrote:> 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.g31c7954Thanks, pushed. RIch. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
Maybe Matching Threads
- [PATCH] Fix include for xattr.h
- [PATCH 1/5] mount: add a macro to resolve path or device
- [PATCH libnbd] nbdfuse: New tool to present a network block device in a FUSE filesystem.
- [PATCH v2] New APIs: mount-local and umount-local using FUSE
- [PATCH v3] New APIs: mount-local, mount-local-run and umount-local using FUSE