From patchwork Fri Feb 2 07:44:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rink Springer X-Patchwork-Id: 10196343 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 84F1A60247 for ; Fri, 2 Feb 2018 07:54:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 66A5F28E01 for ; Fri, 2 Feb 2018 07:54:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A43F28E11; Fri, 2 Feb 2018 07:54:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_TVD_MIME_EPI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04E0528E01 for ; Fri, 2 Feb 2018 07:54:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750871AbeBBHy2 (ORCPT ); Fri, 2 Feb 2018 02:54:28 -0500 Received: from mail.zhmu.nl ([37.247.37.64]:30282 "EHLO mail.zhmu.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750795AbeBBHy2 (ORCPT ); Fri, 2 Feb 2018 02:54:28 -0500 Received: from mail.zhmu.nl (mail.zhmu.nl [37.247.37.64]) by mail.zhmu.nl (Postfix) with ESMTP id 4EC3E6433 for ; Fri, 2 Feb 2018 08:44:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rink.nu; s=owl; t=1517557496; bh=zHLKnwM+y6XGPMzRXbrW++tEz+7vUFrIKFJG80lddxU=; h=Date:From:To:Subject; b=uTnwaTehInuDb3Hn3cVdcKYmZ/RBljT/s5NbxlX4EXZLl6ErbG1K7LI46YCU9RVNm d9awN0+j0Nps72q8PZ4pAaSvs3CD0ljWgeXqVtRQ81OK9GHHC6LVtVjjYNQdOppEAN xOTNSAh6n5H23wOeN2A7w3OflS4w8OgEl4SzWy9A= X-Virus-Scanned: amavisd-new at zhmu.nl Received: from mail.zhmu.nl ([37.247.37.64]) by mail.zhmu.nl (anathema.codehulu.net [37.247.37.64]) (amavisd-new, port 10024) with ESMTP id FpGAj58FAPZg for ; Fri, 2 Feb 2018 08:44:55 +0100 (CET) Received: from gloom.zhmu.nl (mail.zhmu.nl [37.247.37.64]) by mail.zhmu.nl (Postfix) with ESMTP id C41756426 for ; Fri, 2 Feb 2018 08:44:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rink.nu; s=owl; t=1517557495; bh=zHLKnwM+y6XGPMzRXbrW++tEz+7vUFrIKFJG80lddxU=; h=Date:From:To:Subject; b=cWph2dZrVYp2rg1cvkFAza/R9ZdSGi142RDGq54zcTPs0/rRTuAnFxvzlmvGRvQN/ aMFbFAoknAPw8nobVR5/dSQdHFtpl6FHdOIO1BjzaU9FfYTkygu/AXdMGnboP2yTe6 WfElxXe+MyNpzmxaeyuhnZHdfGprM/5RyuZfrQj0= Received: by gloom.zhmu.nl (Postfix, from userid 1000) id BC43C1FD811; Fri, 2 Feb 2018 08:44:55 +0100 (CET) Date: Fri, 2 Feb 2018 08:44:55 +0100 From: Rink Springer To: dash@vger.kernel.org Subject: [PATCH] Remove dependency on fmatch.h if it does not exit Message-ID: <20180202074455.GD1669@rink.nu> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.8.3 (2017-05-23) Sender: dash-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dash@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP [ Ugh; forgot to attach patch - apologies, I need more coffee ] Dear all, Attached is a trivial patch that removes the assumption that fnmatch.h is available - the configure script already checks for fnmatch(3) and supplies its own implementation if necessary, but fnmatch.h is always included. Let me know what you think. Regards, Rink Do not assume we can include fnmatch.h Signed-off-by: Rink Springer diff --git a/src/expand.c b/src/expand.c index 2a50830..1ab5757 100644 --- a/src/expand.c +++ b/src/expand.c @@ -45,7 +45,9 @@ #include #include #include +#ifdef HAVE_FNMATCH #include +#endif #ifdef HAVE_GLOB #include #endif