From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44177 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3AQm-0005F3-M0 for qemu-devel@nongnu.org; Tue, 05 Oct 2010 12:32:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P3APk-0006Vc-Ht for qemu-devel@nongnu.org; Tue, 05 Oct 2010 12:31:55 -0400 Received: from db3ehsobe004.messaging.microsoft.com ([213.199.154.142]:45523 helo=DB3EHSOBE004.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P3APk-0006VI-8W for qemu-devel@nongnu.org; Tue, 05 Oct 2010 12:30:52 -0400 Received: from mail21-db3 (localhost.localdomain [127.0.0.1]) by mail21-db3-R.bigfish.com (Postfix) with ESMTP id CE734B08154 for ; Tue, 5 Oct 2010 16:30:50 +0000 (UTC) Received: from DB3EHSMHS012.bigfish.com (unknown [10.3.81.252]) by mail21-db3.bigfish.com (Postfix) with ESMTP id 780B5348052 for ; Tue, 5 Oct 2010 16:30:50 +0000 (UTC) Received: from de01smr01.freescale.net (de01smr01.freescale.net [10.208.0.31]) by az33egw01.freescale.net (8.14.3/8.14.3) with ESMTP id o95GUVtm016503 for ; Tue, 5 Oct 2010 09:30:42 -0700 (MST) Received: from az33exm25.fsl.freescale.net (az33exm25.am.freescale.net [10.64.32.16]) by de01smr01.freescale.net (8.13.1/8.13.0) with ESMTP id o95GjPmu010265 for ; Tue, 5 Oct 2010 11:45:25 -0500 (CDT) Date: Tue, 5 Oct 2010 11:30:29 -0500 From: Scott Wood Subject: Re: [Qemu-devel] [PATCH] configure: include stddef.h for NULL Message-ID: <20101005113029.06a944d5@udp111988uds.am.freescale.net> In-Reply-To: References: <20101004211700.GA27097@udp111988uds.am.freescale.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: QEMU Developers On Tue, 5 Oct 2010 10:03:35 +0200 Markus Armbruster wrote: > Scott Wood writes: > > > This fixes an observed failure to detect madvise() on Linux. > > > > To avoid similar issues, all other tests that use NULL but don't already > > have stddef.h are also fixed. > > Appreciated, but several instances don't need fixing, because existing > includes already provide NULL. > > > Signed-off-by: Scott Wood > > --- > > configure | 9 +++++++++ > > 1 files changed, 9 insertions(+), 0 deletions(-) > > > > diff --git a/configure b/configure > > index e0d34fd..9c4f1db 100755 > > --- a/configure > > +++ b/configure > > @@ -1276,6 +1276,7 @@ if test "$vnc_sasl" != "no" ; then > > cat > $TMPC < > #include > > #include > > +#include > > stdio.h provides NULL. Hmm, I had looked up a reference to see if stdio.h is defined to supply this, and didn't see it. Today I see it. :-P I'll respin the patch. -Scott