Message ID | 87fsdhllhk.fsf@oldenburg.str.redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp479701wrn; Wed, 14 Dec 2022 13:34:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf5+3He0hKl3nEIf1UILZRsOuMBGJxt88r7TsDCSghVShApg22p2Zp2XSyPVs0YEsic3YHzV X-Received: by 2002:a17:906:edae:b0:7c1:12b0:7d5d with SMTP id sa14-20020a170906edae00b007c112b07d5dmr22057831ejb.4.1671053659600; Wed, 14 Dec 2022 13:34:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671053659; cv=none; d=google.com; s=arc-20160816; b=ysKKiF71UqRU0bAoRDGUMSbnLVdxAvdQIqxktRBVEwxTgDqpm+x0nIQTqWW13W9M+d u//Bh5u5FsUUGPg3JjZ0a7xuFN/eAFonMkJ3BE1w5Tt8Zkgq6jTbrLnzhfm/Xepye6FV epk2OfVR3dqlMr8nz3Utp3z97SsHWHLIEmiGDHF/pedbEJNrFSAjMYOOxCKuetmYB0kh J+8Tyq/sBuAmSuFSopDy+2llIxyP+jUhmvEdcr7CavQwA3t/jcEyF/KSHCv+rz1ISbKF +VX2679tvO4ZzgsCPc3NomCtDJT3Xjhoy/Emc5jIB4pTJXl4eB5YfzprtO1Ar0BMkdYF 71uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:date:subject :to:from:dkim-signature; bh=FUzpeAfgvzVz/5w9XcHGMTUv81BEJmGgs/I3fDj9iOo=; b=mcgQellTjiOtIfbhu4k5rP1A3/zNq51PGp9daWVOHzSQU6aRPrRdJXpZxKSHY9CBfF 3bKbmty6yLdca4S+M+hazTkbSVAsiYuZiNDCSlZOOEA9nOU+xC4A+cK41fufwQXXbhvN 2gXsAiF1l8+bvgc4gOX5ptrK5R+YYDF9Y7nbwWdYSspTZOakOObIO0Q/ZssHCUWPYJgg WRoKMTRT/vpiyO0k3cHc1qMcK/FMQ0nXpt3fj4aDNGhHF5Di2c3DKeN67ECWY2/xSfDz 9wkXYLMULAbH9bfNx1hLUpjujARMCBIOdNTN3X5gY64xszIwes5/xedhsRngUbaMULe3 XbcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hpol03xL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c13-20020a170906340d00b007819684b56fsi9089839ejb.225.2022.12.14.13.33.56; Wed, 14 Dec 2022 13:34:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hpol03xL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229613AbiLNVdc (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Wed, 14 Dec 2022 16:33:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbiLNVda (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 14 Dec 2022 16:33:30 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F28CB389DD for <linux-kernel@vger.kernel.org>; Wed, 14 Dec 2022 13:32:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671053564; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=FUzpeAfgvzVz/5w9XcHGMTUv81BEJmGgs/I3fDj9iOo=; b=hpol03xLZCt+E84I8MRrLSBhxvLk4I3aGUiWKkePJhxHlNKMiGfbzqjILW2WOkfSKLSomV M+KcIH2djdNopkySX9+rpa8QbK1bl7tAPhTtpIxq2ZG9baiHZTJBG2H1iHvTCoYpvddeTe SV1XVKlbGv64tpciH/oS7PCM0laISPY= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-625-IoSSDzglOjKf0WznFZ0RgQ-1; Wed, 14 Dec 2022 16:32:42 -0500 X-MC-Unique: IoSSDzglOjKf0WznFZ0RgQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E70C6280BCA2; Wed, 14 Dec 2022 21:32:41 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1F8F940C2064; Wed, 14 Dec 2022 21:32:40 +0000 (UTC) From: Florian Weimer <fweimer@redhat.com> To: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Define _GNU_SOURCE for a declaration of strptime Date: Wed, 14 Dec 2022 22:32:39 +0100 Message-ID: <87fsdhllhk.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752226762196450765?= X-GMAIL-MSGID: =?utf-8?q?1752226762196450765?= |
Series |
Define _GNU_SOURCE for a declaration of strptime
|
|
Commit Message
Florian Weimer
Dec. 14, 2022, 9:32 p.m. UTC
This is needed for compatibility with future C compilers which reject implicit function declarations by default. Without _GNU_SOURCE (or a similar feature test macro), <time.h> does not declare the strptime function, and compilation can fail. --- Make.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Related to: <https://fedoraproject.org/wiki/Changes/PortingToModernC> <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
diff --git a/Make.rules b/Make.rules index 903a5a4..d4de1ef 100644 --- a/Make.rules +++ b/Make.rules @@ -14,7 +14,7 @@ else $(error unknown architecture $(ARCH)) endif INCDIR = -I$(TOPDIR)include/ -I/usr/include/efi -I/usr/include/efi/$(ARCH) -I/usr/include/efi/protocol -CPPFLAGS = -DCONFIG_$(ARCH) +CPPFLAGS = -DCONFIG_$(ARCH) -D_GNU_SOURCE CFLAGS = -O2 -g $(ARCH3264) -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check LDFLAGS = -nostdlib CRTOBJ = crt0-efi-$(ARCH).o