From patchwork Wed Jan 27 11:45:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanu Kaskinen X-Patchwork-Id: 8132911 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2C04BBEEE5 for ; Wed, 27 Jan 2016 11:46:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 71A9220303 for ; Wed, 27 Jan 2016 11:46:18 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 5DC5A20270 for ; Wed, 27 Jan 2016 11:46:16 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id E3765260511; Wed, 27 Jan 2016 12:46:14 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, NO_DNS_FOR_FROM,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 0A7FB26044B; Wed, 27 Jan 2016 12:46:07 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 8BBB1260481; Wed, 27 Jan 2016 12:46:05 +0100 (CET) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by alsa0.perex.cz (Postfix) with ESMTP id 5A935260439 for ; Wed, 27 Jan 2016 12:45:59 +0100 (CET) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 955392CE9C for ; Wed, 27 Jan 2016 06:45:58 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Wed, 27 Jan 2016 06:45:58 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:message-id:subject:to :x-sasl-enc:x-sasl-enc; s=smtpout; bh=i1Tk5IInxwhVwBFdO1VPDL7tsh 4=; b=h1cqeQaRKCoqmi5s6WFruQLpo0weWAfypHqepx4nibeLyOeA82JEwbeaac Xj8CoT0oxNtAOCzyFqKLiN6V1miEf9D85lDCqrnSJlUC/xZ3SOUOzrn7332Wq4Tv wdotDSkGB6rvorkoeumVy0BkiNotYs2KsBsVys95yL1Nouz4M= X-Sasl-enc: MHGHBY/hWZpOftei/Gb0d8CeHsPAXdR7W/nRpjMn9Ps/ 1453895158 Received: from laptop.tanuk.dy.fi (a88-114-110-232.elisa-laajakaista.fi [88.114.110.232]) by mail.messagingengine.com (Postfix) with ESMTPA id E1C13C0171A; Wed, 27 Jan 2016 06:45:57 -0500 (EST) From: Tanu Kaskinen To: alsa-devel@alsa-project.org Date: Wed, 27 Jan 2016 13:45:51 +0200 Message-Id: <1453895151-15293-1-git-send-email-tanuk@iki.fi> X-Mailer: git-send-email 2.7.0.rc3 Cc: Takashi Iwai Subject: [alsa-devel] [PATCH alsa-plugins] pph: include config.h from rate_speexrate.c X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes compilation against libspeexdsp 1.2rc3. rate_speexrate.c includes speex_resampler.h, which depends on config.h by referencing the HAVE_SPEEX_SPEEXDSP_TYPES_H macro. AFAIK it's not a good idea to include config.h from headers (I don't know/remember why, though), which is why I include config.h from rate_speexrate.c instead of speex_resampler.h. Signed-off-by: Tanu Kaskinen --- pph/rate_speexrate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pph/rate_speexrate.c b/pph/rate_speexrate.c index 0a1325c..8fc4cef 100644 --- a/pph/rate_speexrate.c +++ b/pph/rate_speexrate.c @@ -28,6 +28,7 @@ POSSIBILITY OF SUCH DAMAGE. */ +#include "config.h" #include #include #include