From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web11.8237.1608289774870725038 for ; Fri, 18 Dec 2020 03:09:35 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=EqHOkxvg; spf=pass (domain: intel.com, ip: 134.134.136.100, mailfrom: bob.c.feng@intel.com) IronPort-SDR: 6P7f3qWEM7XZYTufSxLIsdlmQWiWGGZ9mjUX8O1TYH0Gp/qKpNfUB925LHv80IylLATvCCInys +3ZrhsxN4Lmg== X-IronPort-AV: E=McAfee;i="6000,8403,9838"; a="239508626" X-IronPort-AV: E=Sophos;i="5.78,430,1599548400"; d="scan'208";a="239508626" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2020 03:09:33 -0800 IronPort-SDR: J4PYggymt0fTOwetMaky4GXQRDWIuAvYeNuZdtUdELX9e6FuTx8fOgub6AO9MeG5ilw2l2yIKb Btk9gZ8ZB1Tg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,430,1599548400"; d="scan'208";a="380415755" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga007.jf.intel.com with ESMTP; 18 Dec 2020 03:09:32 -0800 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 18 Dec 2020 03:09:32 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 18 Dec 2020 03:09:32 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Fri, 18 Dec 2020 03:09:32 -0800 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.171) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Fri, 18 Dec 2020 03:09:31 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J19OnGqlXIIE8JGdzUG58JQQktMX+NPb6RyRvk543KfOrhmKCWCsnxfMmuZ0YjM4ZvfCwMTQaykYGd/DvvYghIEEETF249Uxwvt1VnXeiJ1ewOGhWhJTQFUfTDDo3YdTWHSMOV405jH37CHTfSuL0cONJbrRUaRbZX/XTOJRF32DMe4kZXpRD3KWxPkldv5F9KvwiFVRLNavhwqXBwpsDzP7xw5QxXq0GqhXcExEk8w3TCb5ZNFSPxM4COU3V1LRUsqgGbiw9XeEbptHubM+sBKqMBwOlcEc/GZd56i3/AlQN/H+/IRL4DQPIlnWSEU3RO9Uyl1dQCeGeYspUFRowg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r+GB7lseOA2NAI1uhKmz0DDRqbL7N/Z51y21YA2IWHM=; b=NVfNwONJf+i4C8hiyhjf950f0SpeQrvRUwUpJvi5+a3Xdmi+ZMu4t+UzfJgSkYFnjWHfBKpdg24WMAobEySuVYY5RqYKMRFo0VM2aXdEa/1I7CLDxsECFEim/bkkl/hxZinNjPAkBCCgne5FuZOtTgRm0XHLuY24mwt2mneHq8+F99AmH3aasGilyradzeMIADhAbbPr/rilXdAQY0JhhTMdcTMtcFcRc86HqoRMaE+PtAUKyuuwWyL8YE3K3OQVLyM+mUdWoP9/0zX7zu1aytYddadwNf/BpO1zrF8rjwCnaG4+15n5/KJqFVHdOvneMJFzOY87D2Mx1+p0aCcxJA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r+GB7lseOA2NAI1uhKmz0DDRqbL7N/Z51y21YA2IWHM=; b=EqHOkxvg3eYFyLgh+y1QvjYpB0YxA/HcJ+hqtgGKli0wZFlo49y4n9SaZt7R+wW7yBPJXi+5obRUHGS5CLH5bww6NcP48QGYswSkXRMWR5A0zhhh1ld3+sOlwETjQCGW8ywQGqE8hKc6oeW0ZgzuVdpD96swU8LUUTNhJs4pTW8= Received: from DM6PR11MB4073.namprd11.prod.outlook.com (2603:10b6:5:19f::22) by DM6PR11MB3065.namprd11.prod.outlook.com (2603:10b6:5:72::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.24; Fri, 18 Dec 2020 11:09:30 +0000 Received: from DM6PR11MB4073.namprd11.prod.outlook.com ([fe80::c9f:47ea:6321:5ccb]) by DM6PR11MB4073.namprd11.prod.outlook.com ([fe80::c9f:47ea:6321:5ccb%3]) with mapi id 15.20.3654.025; Fri, 18 Dec 2020 11:09:30 +0000 From: "Bob Feng" To: Enze Zhu , "devel@edk2.groups.io" CC: Liming Gao , "Chen, Christine" Subject: Re: [PATCH] BaseTools/CommonLib.h: Build failed due to MAX_LONG_FILE_PATH Thread-Topic: [PATCH] BaseTools/CommonLib.h: Build failed due to MAX_LONG_FILE_PATH Thread-Index: AQHW1BsxK5Zu8Z88l0+flH4QGH4vBqn8tC9w Date: Fri, 18 Dec 2020 11:09:30 +0000 Message-ID: References: <20201217021952.1937-1-zhuenze@byosoft.com.cn> In-Reply-To: <20201217021952.1937-1-zhuenze@byosoft.com.cn> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: byosoft.com.cn; dkim=none (message not signed) header.d=none;byosoft.com.cn; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.37] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9057396a-ace6-4d89-5677-08d8a345647e x-ms-traffictypediagnostic: DM6PR11MB3065: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:446; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: k4QxpcytcgG9XDwgTGYORCyxDVxCGzn1EscWIGh3yQpXjFpZB7iP/8m12aJdJnTA8LYLNcy2i4Ds3sSQSACFCvuZuXurtxmBWFOdXy8rjOHAPXQTYOe3dSjgYg/vN7y8TTfGN7kRkFxcBeFcMMUDCv/Zx4zhYPJmLxlO21sb8E+3t7Qxwwp8fbvGSsm6fRVQnJ8JPThNDKbmKV1y0z0Qu/0KKx/9gys4larNdooSP+Z9IKWByxOlUJpjdouzMwRNax1Q1KfbWmqeF5XqWIqiO+Kr+FcdjRq10Qz5zBOn/5Owun4a2XelLrzZVCqiDYnEat7Jw9bcbYhxf0/22j3o/i9q4+43VH42X576W5Zq9Bi+kG3+3mhs5K7vF6ogUcPDjtk614Xa66BTKCiT+jDL8A== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB4073.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(396003)(376002)(346002)(366004)(136003)(52536014)(4326008)(107886003)(76116006)(66476007)(66556008)(66946007)(9686003)(55016002)(110136005)(8936002)(83380400001)(54906003)(64756008)(478600001)(7696005)(33656002)(86362001)(316002)(71200400001)(5660300002)(66446008)(2906002)(8676002)(6506007)(26005)(53546011)(186003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?XwExThbH4+y0xex2Kfh88aCJNFqiPQWGGYUD3hI84QkPoDoohsizL3WwWNcs?= =?us-ascii?Q?TLpppfXI/ya9v9REM37IlUS0KYU0knyPiWVtF8LlebgV+gn8Dw9Nd6ZnJf1w?= =?us-ascii?Q?JRxTvuyBPEgraZCaqL0KkdEHE1/YJPAwDIPar+rtulNjkKV70zmATEyECZAG?= =?us-ascii?Q?ejvVFQaxihQzfZnwmlBhbM/Me55n7MGFw5FPistKJgmTP5T+XSphIw0zLdml?= =?us-ascii?Q?BHK6fXU+v0skrqbmPOS4EsRFvDSq/gI6yeS4Cc+biyIUIo9qq7h/LKcH9++8?= =?us-ascii?Q?bt8RT3idSsidHx8W06QvPkXONR7xw9zxPcmYPbrktO3V3kppTRFhLKxCOE0D?= =?us-ascii?Q?0NJytLLnMC7xtBRup5pli2hfC2XzHEuUG+tGLtyqbeWVRYiGF1+TBgIZoCXg?= =?us-ascii?Q?6hdGcIWHBmnEjPG4Cf9VrAaah4UeWnwGVh6NwlPLzct46EfsluR2W/gSwJ/n?= =?us-ascii?Q?SlvJ1JEeM/TNtkyVcQPTxfPnL2VNZ0jnIbO063s7SU3RwrQgfoRL9RXZH8yn?= =?us-ascii?Q?7G6qF52JlbFGQZgBQUALQJXNqbfhbpEbTRPAcOxX9eQ3uyzg1D6zut5Uc/Uk?= =?us-ascii?Q?XkRsL9pmQR5OlWRLs4wRvVGaRkO5/JyPpsr2GMF+wleaMO8HoZuzO/YxDOrL?= =?us-ascii?Q?aNBW0TseKCLesj12N2URJOTpsuJWDTiv5yCp06XtUMqjct6qriiTEKvxR4jQ?= =?us-ascii?Q?VZ69SCCak9X3dB4fVVadhbSPl9sxEAnI6HVNt9gYabfLZUh9HGY6jw/L90nt?= =?us-ascii?Q?IuHTEaTSHGULV05WSHLFMlqZzTcB3kd4zceM/FUlHznZIwM7SUNVH/L5JWq/?= =?us-ascii?Q?7jA+Q9eFX9IkMteFpj83AzCI1cdlUFjQfIlRahw7p7VKo6nnZy0QG9CorK53?= =?us-ascii?Q?3LbLkpqEGzm9kWFJd1upEd7FuIvcPQWCL3sAt1HOEvSYOAWd5UIbsHj3Bh9h?= =?us-ascii?Q?/DRLnCJuXzCR0ejPzkqnsBXJJgPA70ig3GetdfpeMQw=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB4073.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9057396a-ace6-4d89-5677-08d8a345647e X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Dec 2020 11:09:30.5608 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: aSKpRQByHi/iFwXkLkGdCzVO1E0F7JloD/s9qZIdwUmpXoAmIExdLALpDeffSYy/dXxJr5of7BaUZZFmvQKm0Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3065 Return-Path: bob.c.feng@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Bob Feng -----Original Message----- From: Enze Zhu =20 Sent: Thursday, December 17, 2020 10:20 AM To: devel@edk2.groups.io Cc: Feng, Bob C ; Liming Gao ; Chen, Christine Subject: [PATCH] BaseTools/CommonLib.h: Build failed due to MAX_LONG_FILE_P= ATH REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D3032 We had a build fail due to the hard coded MAX_LONG_FILE_PATH value. We should use PATH_MAX if it is available. Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Signed-off-by: Enze Zhu --- BaseTools/Source/C/Common/CommonLib.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BaseTools/Source/C/Common/CommonLib.h b/BaseTools/Source/C/Com= mon/CommonLib.h index e1cce985f7..0f05d88db2 100644 --- a/BaseTools/Source/C/Common/CommonLib.h +++ b/BaseTools/Source/C/Common/CommonLib.h @@ -12,9 +12,17 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include <= Common/UefiBaseTypes.h> #include #include +#ifndef _WIN32 +#include +#endif + #define PRINTED_GUID_BUFFER_SIZE 37 // including null-termination =20 +#ifdef PATH_MAX +#define MAX_LONG_FILE_PATH PATH_MAX +#else #define MAX_LONG_FILE_PATH 500 +#endif =20 #define MAX_UINT64 ((UINT64)0xFFFFFFFFFFFFFFFFULL) #define MAX_UINT32 ((U= INT32)0xFFFFFFFF) -- 2.27.0.windows.1