From patchwork Sun Sep 8 12:12:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: liezhi.yang@windriver.com X-Patchwork-Id: 13795431 Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D55C15B132 for ; Sun, 8 Sep 2024 12:12:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.166.238 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725797546; cv=none; b=Yao2atSgyZImmlHedLYJsWpumHMRF5/t3MEimei4FCtAKpui0RnJBCLLUH4q5LHNxG5dZa77Uaj+3XsWkx0wd6rNtBtve7/qNMSrBR99tCwwvgb3Qwz2v/6hzcweZq1KApa8+JnheebPnKPbz/0/1Ic+/MwDoxv3TBFWa6WRrDE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725797546; c=relaxed/simple; bh=SWyhkDVizBMP27ItAOwUF6yGeQTaLvnoTuxuKiNwV2E=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=eqAA5GFFPrpLeF19QES4dpKSnwJCCP44XcMFGaViOlev0NGDMXY98iVDILMIt7Utg67XTSqE0hqIpvVbyOKS+Vz1N2eML5/ejhWjNhhbFt9bljBn0IJBatBXgEphwtbLRvy3OBajkTIK++BgTdPrzfYVq5RrCah3wYFKJhsXqG0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=windriver.com; spf=pass smtp.mailfrom=windriver.com; arc=none smtp.client-ip=205.220.166.238 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=windriver.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=windriver.com Received: from pps.filterd (m0250809.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 488BuSas018023 for ; Sun, 8 Sep 2024 05:12:23 -0700 Received: from ala-exchng01.corp.ad.wrs.com (ala-exchng01.wrs.com [147.11.82.252]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 41gpbk0ngj-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sun, 08 Sep 2024 05:12:23 -0700 (PDT) Received: from ala-exchng01.corp.ad.wrs.com (147.11.82.252) by ala-exchng01.corp.ad.wrs.com (147.11.82.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Sun, 8 Sep 2024 05:12:18 -0700 Received: from ala-lpggp7.wrs.com (147.11.136.210) by ala-exchng01.corp.ad.wrs.com (147.11.82.252) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Sun, 8 Sep 2024 05:12:18 -0700 From: To: Subject: [nfs-utils PATCH 2/2] support/junction/path.c: Fix buld for musl Date: Sun, 8 Sep 2024 05:12:17 -0700 Message-ID: <20240908121217.967390-2-liezhi.yang@windriver.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240908121217.967390-1-liezhi.yang@windriver.com> References: <20240908121217.967390-1-liezhi.yang@windriver.com> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-GUID: JszV4FsKaDHo40vIMLHqdqGdGRgSLxWN X-Authority-Analysis: v=2.4 cv=Ye3v5BRf c=1 sm=1 tr=0 ts=66dd94a7 cx=c_pps a=/ZJR302f846pc/tyiSlYyQ==:117 a=/ZJR302f846pc/tyiSlYyQ==:17 a=EaEq8P2WXUwA:10 a=t7CeM3EgAAAA:8 a=mDV3o1hIAAAA:8 a=OdVygvz5nBpVOvdqP74A:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-ORIG-GUID: JszV4FsKaDHo40vIMLHqdqGdGRgSLxWN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-08_04,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 spamscore=0 mlxlogscore=590 clxscore=1015 bulkscore=0 malwarescore=0 mlxscore=0 lowpriorityscore=0 phishscore=0 suspectscore=0 priorityscore=1501 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.21.0-2408220000 definitions=main-2409080102 From: Robert Yang Fixed: path.c:164:24: error: implicit declaration of function 'strchrnul'; did you mean 'strchr'? [-Wimplicit-function-declaration] [snip] path.c:239:27: error: 'NAME_MAX' undeclared (first use in this function); did you mean 'AF_MAX'? Signed-off-by: Robert Yang --- support/junction/path.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/support/junction/path.c b/support/junction/path.c index 13a14386..dd0f59a0 100644 --- a/support/junction/path.c +++ b/support/junction/path.c @@ -23,6 +23,12 @@ * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt */ +/* For musl */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif +#include + #include #include