From patchwork Sat Aug 13 14:05:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 9278421 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 066EE6075D for ; Sat, 13 Aug 2016 14:20:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8C9C289F5 for ; Sat, 13 Aug 2016 14:20:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D6C4428A3D; Sat, 13 Aug 2016 14:20:20 +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, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 4D450289F5 for ; Sat, 13 Aug 2016 14:20:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752433AbcHMOUQ (ORCPT ); Sat, 13 Aug 2016 10:20:16 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:35983 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752384AbcHMOUP (ORCPT ); Sat, 13 Aug 2016 10:20:15 -0400 Received: by mail-wm0-f65.google.com with SMTP id i138so2513663wmf.3 for ; Sat, 13 Aug 2016 07:20:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=Ghnk324rF31ulTkAHnz0WAFXjVSWrbxVU9XesuX57Rk=; b=mfjb6S/epQAIkRxKtZziJmgVZE3/gbyyQtURs8XkGb4S+1lRCLrxGQsM/juindBjbh hfqTvWjvpy6Vmpa+dz1/xpwkTRK9hfamb10WN/RchZSoukoXt6Ax90VhcQj/A9yNQCD9 3AKKRZEZ/mh1V/3pakD+7uwqOGcEaFCC+vmwam+ybWAuUm+c0metfOQum/Sal6kemW7+ 88wAxAzaIBTowukT52NLbPNoYqlZQXl7Keo/NJaWsByUKtFRdvoqlu4xIR91ildK6qNq qDUKQEU7zIFMWq51LZHvJM5TAaGSglLIn+KdEMXYCT4BCwrESZ+dQceZjhqUUjf3Ewmy CN2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=Ghnk324rF31ulTkAHnz0WAFXjVSWrbxVU9XesuX57Rk=; b=jLO1AxXiz1NHA5Z/JauYJZfvbJ+zaaAoJn+9QxPl+2s4KePTcqalKFIjLr4YAQCfwX HLnQMApiv5bWsXnm/AjJoLCZiQraCIk3MGYwmIuvh3vhmSl//TAS+YJrPWZJwr7duynf r+ikQzCaskAYS1x1SeHSzP269B1aZW06MmlzDpDqmW/BIDOKCVAG94MwKyjhIcnWR1FO Grs26SazPnwRyc2I364gHO1ULVGSQpIp8dYaPK9hp6yilf8eyjhXBNS8i9fCqhIqYPMt h6CaJ2YdXte3Oaa97/GJR7WKXyUZ86xeY9WnbNvUczUzlYPfnQl0dS42bjo7ttlZsEgK XlPg== X-Gm-Message-State: AEkoouvlV+2UYdlTKOFyMauhP7hMWlaK9sLrvAWGVORsWuVau4cULr3IligfpvC2Xp1A1g== X-Received: by 10.194.40.166 with SMTP id y6mr20168108wjk.171.1471097129814; Sat, 13 Aug 2016 07:05:29 -0700 (PDT) Received: from gourin.bzh.lan (ns304657.ip-46-105-103.eu. [46.105.103.66]) by smtp.gmail.com with ESMTPSA id wc3sm12267933wjc.47.2016.08.13.07.05.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 13 Aug 2016 07:05:28 -0700 (PDT) From: "Yann E. MORIN" To: linux-nfs@vger.kernel.org Cc: "Yann E. MORIN" Subject: [PATCH rpcbind] src: include cdefs.h for the __P() macro Date: Sat, 13 Aug 2016 16:05:25 +0200 Message-Id: <1471097125-13193-1-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 2.7.4 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The __P() macro is defined in cdefs.h, so we must include it explicitly rather than relying on it being included by another header. cdefs.h is a glibc-ism; glibc includes it almost everywhere from its own headers. So it automatically gets included for glibc. However, cdefs.h is not present in musl, so its headers do not include it. We must thus include it when we need __P() (of course, one will have to provide his own cdefs.h in this case). Signed-off-by: "Yann E. MORIN" --- src/check_bound.c | 1 + src/pmap_svc.c | 1 + src/rpcb_svc.c | 1 + src/rpcb_svc_4.c | 1 + src/rpcb_svc_com.c | 1 + src/rpcbind.c | 1 + src/util.c | 1 + src/warmstart.c | 1 + 8 files changed, 8 insertions(+) diff --git a/src/check_bound.c b/src/check_bound.c index c70b845..df14fbc 100644 --- a/src/check_bound.c +++ b/src/check_bound.c @@ -49,6 +49,7 @@ static char sccsid[] = "@(#)check_bound.c 1.11 89/04/21 Copyr 1989 Sun Micro"; #include #include +#include #include #include #include diff --git a/src/pmap_svc.c b/src/pmap_svc.c index ad28b93..5993c0b 100644 --- a/src/pmap_svc.c +++ b/src/pmap_svc.c @@ -49,6 +49,7 @@ static char sccsid[] = "@(#)pmap_svc.c 1.23 89/04/05 Copyr 1984 Sun Micro"; #ifdef PORTMAP #include #include +#include #include #include #include diff --git a/src/rpcb_svc.c b/src/rpcb_svc.c index bd92201..eb5b49c 100644 --- a/src/rpcb_svc.c +++ b/src/rpcb_svc.c @@ -42,6 +42,7 @@ * version 3 of rpcbind. */ #include +#include #include #include #include diff --git a/src/rpcb_svc_4.c b/src/rpcb_svc_4.c index b673452..69d75e3 100644 --- a/src/rpcb_svc_4.c +++ b/src/rpcb_svc_4.c @@ -44,6 +44,7 @@ #include #include +#include #include #include #include diff --git a/src/rpcb_svc_com.c b/src/rpcb_svc_com.c index 148fe42..9369e27 100644 --- a/src/rpcb_svc_com.c +++ b/src/rpcb_svc_com.c @@ -43,6 +43,7 @@ #include #include #include +#include #include #include #include diff --git a/src/rpcbind.c b/src/rpcbind.c index c4265cd..37fc660 100644 --- a/src/rpcbind.c +++ b/src/rpcbind.c @@ -50,6 +50,7 @@ #include #include #include +#include #include #include #include diff --git a/src/util.c b/src/util.c index a6c835b..5bbec1d 100644 --- a/src/util.c +++ b/src/util.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include #include diff --git a/src/warmstart.c b/src/warmstart.c index b6eb73e..f3a9c29 100644 --- a/src/warmstart.c +++ b/src/warmstart.c @@ -34,6 +34,7 @@ #include #include +#include #include #include #include