qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] configure: fix libcap detection


From: Richard W.M. Jones
Subject: Re: [Qemu-devel] [PATCH] configure: fix libcap detection
Date: Mon, 30 Jul 2012 23:04:57 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Jul 30, 2012 at 02:41:33PM +0300, Avi Kivity wrote:
>  - avoid assigned-but-not-used error
>  - avoid missing return error
> 
> Signed-off-by: Avi Kivity <address@hidden>
> ---
>  configure | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configure b/configure
> index 7767aca..5fb449d 100755
> --- a/configure
> +++ b/configure
> @@ -2099,7 +2099,7 @@ if test "$cap" != "no" ; then
>    cat > $TMPC <<EOF
>  #include <stdio.h>
>  #include <sys/capability.h>
> -int main(void) { cap_t caps; caps = cap_init(); }
> +int main(void) { cap_t caps; caps = cap_init(); (void)caps; return 0; }
>  EOF
>    if compile_prog "" "-lcap" ; then
>      cap=yes
> -- 
> 1.7.11.3
> 

I tested this patch and it fixes 9p detection for me.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v



reply via email to

[Prev in Thread] Current Thread [Next in Thread]