qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] configure: Fix build for some versions of glibc


From: Stefano Stabellini
Subject: Re: [Qemu-devel] [PATCH] configure: Fix build for some versions of glibc (9pfs)
Date: Fri, 8 Jun 2012 11:15:24 +0100
User-agent: Alpine 2.02 (DEB 1266 2009-07-14)

On Thu, 7 Jun 2012, Stefan Weil wrote:
> Some versions declare open_by_handle_at, but don't define AT_EMPTY_PATH.
> Extend the check in configure to test both preconditions.
> 
> Signed-off-by: Stefan Weil <address@hidden>

I have just noticed that this issue also affects QEMU 1.0.x, but we
don't have a check for virtfs there.
Maybe we need the original patch in the QEMU 1.0 stable tree?


>  configure |    4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/configure b/configure
> index 799ad0f..f737f6c 100755
> --- a/configure
> +++ b/configure
> @@ -2816,7 +2816,11 @@ fi
>  open_by_hande_at=no
>  cat > $TMPC << EOF
>  #include <fcntl.h>
> +#if !defined(AT_EMPTY_PATH)
> +# error missing definition
> +#else
>  int main(void) { struct file_handle fh; return open_by_handle_at(0, &fh, 0); 
> }
> +#endif
>  EOF
>  if compile_prog "" "" ; then
>      open_by_handle_at=yes
> -- 
> 1.7.10
> 



reply via email to

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