From 7d776e798c330ba7794d7b67fb1ce6a0d082c275 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Mon, 16 Dec 2024 15:06:57 -0700
Subject: [PROPOSED 2/2] =?UTF-8?q?Port=20=E2=80=98utc=E2=80=99=20to=20MS-W?=
 =?UTF-8?q?indows?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Problem reported by Manuela Friedrich.
* localtime.c (utc): Also define if (!USE_TIMEX_T || !defined
TM_GMTOFF) && !defined TZ_NAME, as is the case on MS-Windows.
---
 localtime.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/localtime.c b/localtime.c
index 566d2347..3ee8a3e2 100644
--- a/localtime.c
+++ b/localtime.c
@@ -146,7 +146,7 @@ static const char	wildabbr[] = WILDABBR;
 
 static char const etc_utc[] = "Etc/UTC";
 
-#if defined TM_ZONE || ((!USE_TIMEX_T || !defined TM_GMTOFF) && defined TZ_NAME)
+#if !USE_TIMEX_T || defined TM_ZONE || !defined TM_GMTOFF
 static char const *utc = etc_utc + sizeof "Etc/" - 1;
 #endif
 
-- 
2.47.1

