[Libguestfs] [PATCH] fuse:remove the unused macro when fuse is not available
Richard W.M. Jones
rjones at redhat.com
Sat Jul 21 07:31:04 UTC 2012
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.g31c7954
Thanks, 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
More information about the Libguestfs
mailing list