From patchwork Wed Aug 30 09:16:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Pekka_Sepp=C3=A4nen?= X-Patchwork-Id: 74964 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BC3193856972 for ; Wed, 30 Aug 2023 09:16:50 +0000 (GMT) X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from mail.kapsi.fi (mail.kapsi.fi [IPv6:2001:67c:1be8::25]) by sourceware.org (Postfix) with ESMTPS id 7CBBB3857016 for ; Wed, 30 Aug 2023 09:16:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7CBBB3857016 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sourceware.mail.kapsi.fi Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kapsi.fi DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Subject:Content-Transfer-Encoding:Content-Type:Message-ID:To: From:Date:MIME-Version:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=oyKQ1mCl0YN5+6qfem4kzbfASXQ0BGJ8MZt4fP7TXBs=; b=egFqxcB1NOdSiPxJ5B7VXRMfE2 WBJbLnzNNyiH6B6zdOwQ+vYC1oRC6Z6/fRr6+K5dTV0hYoE2hkl3TPe2KE8kO2KgA4YDqsnNxL8JI jCvhvCioN6ndb4UziP/xI5pGwGfJAs6G951g0F9iTEtkid+6dghFU/nuqtm5q4gTUmBtG9Yr7qRaa /EdEPHEdFoi8UYS08JMVcKnk68xEVVQ6QltFqnp5IzHbk7e95bIfDOGQJdmSG5eH5lrqbXcSWzy+r peq1uKr8oLrVOjiLqHIRctLn0TreBTsvQaiTE45zUFpEhTrL/lua0rDUvCp9ADHOOUehZuN+bXXeB bB5b0wxQ==; Received: from [2001:67c:1be8::200] (helo=roundcube.kapsi.fi) by mail.kapsi.fi with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qbHJU-00D1F5-0t for newlib@sourceware.org; Wed, 30 Aug 2023 12:16:36 +0300 MIME-Version: 1.0 Date: Wed, 30 Aug 2023 12:16:36 +0300 From: =?utf-8?q?Pekka_Sepp=C3=A4nen?= To: newlib@sourceware.org Message-ID: <78a10e66535350a46e694ff7484279eb@sourceware.mail.kapsi.fi> X-Sender: pexu@sourceware.mail.kapsi.fi X-SA-Exim-Connect-IP: 2001:67c:1be8::200 X-SA-Exim-Mail-From: pexu@sourceware.mail.kapsi.fi X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-Spam-Level: X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 Subject: [PATCH 3/3] Reentrancy, attempt to always provide _Thread_local in X-SA-Exim-Version: 4.2.1 (built Wed, 06 Jul 2022 17:57:39 +0000) X-SA-Exim-Scanned: Yes (on mail.kapsi.fi) X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: newlib-bounces+patchwork=sourceware.org@sourceware.org Sender: "Newlib" Attempt to always provide _Thread_local in by including . The C specific keyword _Thread_local is not available unless targetting a suitable C version. --- newlib/libc/include/sys/reent.h | 1 + 1 file changed, 1 insertion(+) diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h index a6c923f1c..a02e7c2bd 100644 --- a/newlib/libc/include/sys/reent.h +++ b/newlib/libc/include/sys/reent.h @@ -12,6 +12,7 @@ extern "C" { #include <_ansi.h> #include +#include #include #define _NULL 0