From patchwork Fri Apr 29 15:59:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc-Antoine Perennou X-Patchwork-Id: 93452 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D0F551007D7 for ; Sat, 30 Apr 2011 01:59:56 +1000 (EST) Received: from localhost ([::1]:48273 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFq6k-0000NF-3P for incoming@patchwork.ozlabs.org; Fri, 29 Apr 2011 11:59:54 -0400 Received: from eggs.gnu.org ([140.186.70.92]:38001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFq6d-0000NA-D4 for qemu-devel@nongnu.org; Fri, 29 Apr 2011 11:59:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFq6c-0004SB-IA for qemu-devel@nongnu.org; Fri, 29 Apr 2011 11:59:47 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:49280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFq6c-0004Rr-AZ for qemu-devel@nongnu.org; Fri, 29 Apr 2011 11:59:46 -0400 X-Originating-IP: 217.70.178.134 Received: from mfilter4-d.gandi.net (mfilter4-d.gandi.net [217.70.178.134]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id B9B9DA809A for ; Fri, 29 Apr 2011 17:59:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at undef12-d.mgt.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter4-d.gandi.net (mfilter4-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id oAeyhgUk5po5 for ; Fri, 29 Apr 2011 17:59:42 +0200 (CEST) X-Originating-IP: 209.85.160.45 Received: from mail-pw0-f45.google.com (mail-pw0-f45.google.com [209.85.160.45]) (Authenticated sender: sendmail@perennou.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id C4774A8080 for ; Fri, 29 Apr 2011 17:59:40 +0200 (CEST) Received: by pwi6 with SMTP id 6so2305704pwi.4 for ; Fri, 29 Apr 2011 08:59:39 -0700 (PDT) Received: by 10.68.6.135 with SMTP id b7mr4036635pba.296.1304092779236; Fri, 29 Apr 2011 08:59:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.46.67 with HTTP; Fri, 29 Apr 2011 08:59:19 -0700 (PDT) From: Marc-Antoine Perennou Date: Fri, 29 Apr 2011 17:59:19 +0200 Message-ID: To: qemu-devel@nongnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 217.70.183.195 Subject: [Qemu-devel] [PATCH] qemu-kvm: fix pulseaudio detection in configure X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org pulse/simple.h does not include stdlib.h We cannot use NULL since it may not be defined Use 0 instead Signed-off-by: Marc-Antoine Perennou Reviewed-by: Peter Maydell --- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index ea8b676..d67c3ce 100755 --- a/configure +++ b/configure @@ -1567,7 +1567,7 @@ for drv in $audio_drv_list; do pa) audio_drv_probe $drv pulse/simple.h "-lpulse-simple -lpulse" \ - "pa_simple *s = NULL; pa_simple_free(s); return 0;" + "pa_simple *s = 0; pa_simple_free(s); return 0;" libs_softmmu="-lpulse -lpulse-simple $libs_softmmu" audio_pt_int="yes" ;;