From patchwork Fri Jun 24 16:56:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 101876 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 29E4AB6F7D for ; Sat, 25 Jun 2011 05:19:36 +1000 (EST) Received: from localhost ([::1]:47345 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaBue-0006qg-RM for incoming@patchwork.ozlabs.org; Fri, 24 Jun 2011 15:19:32 -0400 Received: from eggs.gnu.org ([140.186.70.92]:46652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qa9hX-0004ZB-Cw for qemu-devel@nongnu.org; Fri, 24 Jun 2011 12:57:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qa9hV-0001ZV-KE for qemu-devel@nongnu.org; Fri, 24 Jun 2011 12:57:51 -0400 Received: from mail-fx0-f45.google.com ([209.85.161.45]:58586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qa9hV-0001W2-2p for qemu-devel@nongnu.org; Fri, 24 Jun 2011 12:57:49 -0400 Received: by mail-fx0-f45.google.com with SMTP id 12so94462fxg.4 for ; Fri, 24 Jun 2011 09:57:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=gYDECWeHUNld+Krg/rbE2oxlEJvYuSRD1JZmZHKeB9M=; b=A6AaatLkyO3vAW97/ADDXSONejvrbvZHXumDcuOfAASmnWqahYfVcUop0o5QsfuiwO 0ZME94YAeuyeb67QF+IuP6BnKFO0LFSBgX1TNKUehvA3kBJETIC6VG8yaYyt11uk0/wV +EwMac42rwgxjJFPsMsvJXx/nzm0TNLd0ZWSo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=NMC6knOMZhiEt5an33CJMcOwReZ4tnUA5hFnqYcqA3+I1dJkdL0mp7UsHpyFGX8s9z 55s9q2ODM4pFzoDrouoAklcqBATjbLTst1vrg9INDThAeIQybftBUY7ZmNNWJKItd5dE WZU8PfJGX6ojCQa9vunO76PhWXs/vm/BS3VHk= Received: by 10.223.30.82 with SMTP id t18mr4740196fac.106.1308934668468; Fri, 24 Jun 2011 09:57:48 -0700 (PDT) Received: from localhost.localdomain (gbibp9ph1--blueice3n2.emea.ibm.com [195.212.29.84]) by mx.google.com with ESMTPS id h28sm1763884faj.5.2011.06.24.09.57.47 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Jun 2011 09:57:47 -0700 (PDT) From: Stefan Hajnoczi To: Date: Fri, 24 Jun 2011 17:56:49 +0100 Message-Id: <1308934609-20824-14-git-send-email-stefanha@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1308934609-20824-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1308934609-20824-1-git-send-email-stefanha@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.45 Cc: Anthony Liguori , Marc-Antoine Perennou , Stefan Hajnoczi Subject: [Qemu-devel] [PATCH 13/13] 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 From: Marc-Antoine Perennou 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 Signed-off-by: Stefan Hajnoczi --- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 4fa9a57..a311071 100755 --- a/configure +++ b/configure @@ -1638,7 +1638,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" ;;