qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1.0 v2] configure: fix detection for xattr.h on


From: Avi Kivity
Subject: Re: [Qemu-devel] [PATCH 1.0 v2] configure: fix detection for xattr.h on modern distributions
Date: Wed, 09 Nov 2011 14:41:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0

On 11/09/2011 01:44 PM, Aneesh Kumar K.V wrote:
> On Wed,  9 Nov 2011 12:33:58 +0200, Avi Kivity <address@hidden> wrote:
> > Modern distributions place xattr.h in /usr/include/sys, and fold
> > libattr.so into libc.  They also don't have an ENOATTR.
> > 
> > Make configure detect this, and add a qemu-xattr.h file that
> > directs the #include to the right place.
> > 
> > @@ -3032,6 +3037,9 @@ fi
> >  if test "$attr" = "yes" ; then
> >    echo "CONFIG_ATTR=y" >> $config_host_mak
> >  fi
> > +if test "$libattr" = "yes" ; then
> > +  echo "CONFIG_LIBATTR=y" >> $config_host_mak
> > +fi
>
> Is this needed ? We are adding -lattr to LIBS if needed. What will
> CONFIG_LIBATTR helps us to achieve ?

It's needed to select <sys/xattr.h> vs <attr/xattr.h>.

> >  #include <sys/socket.h>
> >  #include <sys/un.h>
> > -#include <attr/xattr.h>
> > +#include <qemu-xattr.h>
>
> Should this be 
>
> #include "qemu-xattr.h"

Ugh, yes.  Will fix.



-- 
error compiling committee.c: too many arguments to function




reply via email to

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