Received: from eggs.gnu.org ([140.186.70.92]:56976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUvvK-0005Z5-Oh for qemu-devel@nongnu.org; Fri, 10 Jun 2011 03:14:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUvvI-0007ui-Ve for qemu-devel@nongnu.org; Fri, 10 Jun 2011 03:14:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUvvI-0007uZ-IN for qemu-devel@nongnu.org; Fri, 10 Jun 2011 03:14:28 -0400 From: Markus Armbruster References: <20110603203309.GB14583@volta.aurel32.net> <20110603221707.GI14583@volta.aurel32.net> <5C8D49DE-B25A-4B4D-9170-E81BEBCB8D2E@web.de> Date: Fri, 10 Jun 2011 09:14:16 +0200 In-Reply-To: (Peter Maydell's message of "Thu, 9 Jun 2011 20:07:04 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] qemu-kvm: fix pulseaudio detection in configure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Andreas =?utf-8?Q?F=C3=A4rber?= , Marc-Antoine Perennou , Aurelien Jarno , qemu-devel@nongnu.org Peter Maydell writes: > On 9 June 2011 18:44, Andreas F=C3=A4rber wrote: >> Am 09.06.2011 um 17:52 schrieb Marc-Antoine Perennou: >>> Manually including stddef.h or replacing NULL by 0 or (void*)0 makes it >>> work. >> >> Then please submit a new patch that explicit includes that header with a >> comment explaining why, so that it doesn't get removed by accident. > > I think the original patch is fine. This configure test isn't > trying to test whether we correctly found some definition of > NULL, it's testing pulseaudio presence. The test code should > be the simplest and most stand-alone code that achieves that. > There's no need to go dragging in extra headers when we don't > even need to be using NULL here anyhow. > > We already have configure tests which use unadorned 0 for > pointers (eg the pthread test), it's legal C, and it works. > I think we should call this a trivial patch and just apply it. > > Reviewed-by: Peter Maydell I agree with your reasoning.