From patchwork Mon Oct 4 21:17:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Wood X-Patchwork-Id: 66742 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D373FB6F06 for ; Tue, 5 Oct 2010 08:45:29 +1100 (EST) Received: from localhost ([127.0.0.1]:56653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2sRt-0006Nh-NC for incoming@patchwork.ozlabs.org; Mon, 04 Oct 2010 17:19:53 -0400 Received: from [140.186.70.92] (port=33901 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2sR3-0004pD-3H for qemu-devel@nongnu.org; Mon, 04 Oct 2010 17:19:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P2sPA-0002nd-4W for qemu-devel@nongnu.org; Mon, 04 Oct 2010 17:17:05 -0400 Received: from tx2ehsobe001.messaging.microsoft.com ([65.55.88.11]:12731 helo=TX2EHSOBE001.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P2sP9-0002nW-V8 for qemu-devel@nongnu.org; Mon, 04 Oct 2010 17:17:04 -0400 Received: from mail145-tx2-R.bigfish.com (10.9.14.244) by TX2EHSOBE001.bigfish.com (10.9.40.21) with Microsoft SMTP Server id 14.1.225.8; Mon, 4 Oct 2010 21:17:03 +0000 Received: from mail145-tx2 (localhost.localdomain [127.0.0.1]) by mail145-tx2-R.bigfish.com (Postfix) with ESMTP id 0F70E1182D6 for ; Mon, 4 Oct 2010 21:17:03 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275bhz2dh2a8h62h) Received: from mail145-tx2 (localhost.localdomain [127.0.0.1]) by mail145-tx2 (MessageSwitch) id 1286227022771801_10919; Mon, 4 Oct 2010 21:17:02 +0000 (UTC) Received: from TX2EHSMHS006.bigfish.com (unknown [10.9.14.246]) by mail145-tx2.bigfish.com (Postfix) with ESMTP id B9D441380046 for ; Mon, 4 Oct 2010 21:17:02 +0000 (UTC) Received: from az33egw01.freescale.net (192.88.158.102) by TX2EHSMHS006.bigfish.com (10.9.99.106) with Microsoft SMTP Server (TLS) id 14.0.482.44; Mon, 4 Oct 2010 21:17:02 +0000 Received: from de01smr02.am.mot.com (de01smr02.freescale.net [10.208.0.151]) by az33egw01.freescale.net (8.14.3/8.14.3) with ESMTP id o94LH1w6029784 for ; Mon, 4 Oct 2010 14:17:01 -0700 (MST) Received: from az33exm25.fsl.freescale.net (az33exm25.am.freescale.net [10.64.32.16]) by de01smr02.am.mot.com (8.13.1/8.13.0) with ESMTP id o94LWt4Z019531 for ; Mon, 4 Oct 2010 16:32:56 -0500 (CDT) Received: from udp111988uds.am.freescale.net ([10.82.121.95]) by az33exm25.fsl.freescale.net with Microsoft SMTPSVC(6.0.3790.4675); Mon, 4 Oct 2010 14:17:00 -0700 Date: Mon, 4 Oct 2010 16:17:00 -0500 From: Scott Wood To: QEMU Developers Message-ID: <20101004211700.GA27097@udp111988uds.am.freescale.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-OriginalArrivalTime: 04 Oct 2010 21:17:00.0713 (UTC) FILETIME=[7BF1F990:01CB6409] X-Reverse-DNS: az33egw01.freescale.net X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP2+, XP SP1+ (seldom 98) Subject: [Qemu-devel] [PATCH] configure: include stddef.h for NULL X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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. 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 int main(void) { sasl_server_init(NULL, "qemu"); return 0; } EOF # Assuming Cyrus-SASL installed in /usr prefix @@ -1319,6 +1320,7 @@ if test "$vnc_png" != "no" ; then cat > $TMPC < #include +#include int main(void) { png_structp png_ptr; png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); @@ -1503,6 +1505,7 @@ if test "$brlapi" != "no" ; then brlapi_libs="-lbrlapi" cat > $TMPC << EOF #include +#include int main( void ) { return brlapi__openConnection (NULL, NULL, NULL); } EOF if compile_prog "" "$brlapi_libs" ; then @@ -1737,6 +1740,7 @@ if test "$linux_aio" != "no" ; then cat > $TMPC < #include +#include int main(void) { io_setup(0, NULL); io_set_eventfd(NULL, 0); eventfd(0, 0); return 0; } EOF if compile_prog "" "-laio" ; then @@ -1759,6 +1763,7 @@ if test "$attr" != "no" ; then #include #include #include +#include int main(void) { getxattr(NULL, NULL, NULL, 0); setxattr(NULL, NULL, NULL, 0, 0); return 0; } EOF if compile_prog "" "-lattr" ; then @@ -1935,6 +1940,7 @@ cat > $TMPC << EOF #include #include #include +#include int main(void) { @@ -2032,6 +2038,7 @@ fi cat > $TMPC < #include +#include int main(void) { clockid_t id; return clock_gettime(id, NULL); } EOF @@ -2094,6 +2101,7 @@ madvise=no cat > $TMPC << EOF #include #include +#include int main(void) { return madvise(NULL, 0, MADV_DONTNEED); } EOF if compile_prog "" "" ; then @@ -2106,6 +2114,7 @@ fi posix_madvise=no cat > $TMPC << EOF #include +#include int main(void) { return posix_madvise(NULL, 0, POSIX_MADV_DONTNEED); } EOF if compile_prog "" "" ; then