Received: from eggs.gnu.org ([208.118.235.92]:54888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScwEM-0005ee-I7 for qemu-devel@nongnu.org; Fri, 08 Jun 2012 06:15:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ScwEK-0001oj-25 for qemu-devel@nongnu.org; Fri, 08 Jun 2012 06:15:46 -0400 Received: from smtp.ctxuk.citrix.com ([62.200.22.115]:60857 helo=SMTP.EU.CITRIX.COM) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScwEJ-0001od-Kv for qemu-devel@nongnu.org; Fri, 08 Jun 2012 06:15:43 -0400 Date: Fri, 8 Jun 2012 11:15:24 +0100 From: Stefano Stabellini In-Reply-To: <1339047357-29413-1-git-send-email-sw@weilnetz.de> Message-ID: References: <1339047357-29413-1-git-send-email-sw@weilnetz.de> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Subject: Re: [Qemu-devel] [PATCH] configure: Fix build for some versions of glibc (9pfs) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: "aneesh.kumar@linux.vnet.ibm.com" , "serge.hallyn@canonical.com" , Anthony Liguori , "qemu-devel@nongnu.org" , Stefano Stabellini 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 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 > +#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 >