From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 0D44F3858404 for ; Wed, 10 Nov 2021 00:46:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0D44F3858404 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 97239342F3B; Wed, 10 Nov 2021 00:46:24 +0000 (UTC) From: Mike Frysinger To: newlib@sourceware.org Subject: [PATCH] winsup: delete old _LIBC logic Date: Tue, 9 Nov 2021 19:46:24 -0500 Message-Id: <20211110004624.5044-1-vapier@gentoo.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2021 00:46:26 -0000 This logic has never been used as we don't define _LIBC and the reentrant.h header doesn't exist, so delete it all. --- winsup/cygwin/tzcode/private.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/winsup/cygwin/tzcode/private.h b/winsup/cygwin/tzcode/private.h index 830750ad5b1d..beae506d2270 100644 --- a/winsup/cygwin/tzcode/private.h +++ b/winsup/cygwin/tzcode/private.h @@ -777,19 +777,4 @@ char *ctime_r(time_t const *, char *); ((int_fast64_t) YEARSPERREPEAT * (int_fast64_t) AVGSECSPERYEAR) #define SECSPERREPEAT_BITS 34 /* ceil(log2(SECSPERREPEAT)) */ -#ifdef _LIBC -#include "reentrant.h" -extern struct __state *__lclptr; -#if defined(__LIBC12_SOURCE__) -#define tzset_unlocked __tzset_unlocked -#else -#define tzset_unlocked __tzset_unlocked50 -#endif - -void tzset_unlocked(void); -#ifdef _REENTRANT -extern rwlock_t __lcl_lock; -#endif -#endif - #endif /* !defined PRIVATE_H */ -- 2.33.0