From dbe87fe421f76a3d1ac31082868ce60dfcbdefc4 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 28 Oct 2022 23:22:26 -0700 Subject: [PROPOSED 2/3] Port struct tm guessing to musl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prompted by report from Đoàn Trần Công Danh in: https://mm.icann.org/pipermail/tz/2022-October/032153.html * private.h (TM_GMTOFF, TM_ZONE): By default, assume they work on musl, which #defines __tm_zone. --- private.h | 1 + 1 file changed, 1 insertion(+) diff --git a/private.h b/private.h index 18f6a055..20eea62d 100644 --- a/private.h +++ b/private.h @@ -613,6 +613,7 @@ time_t posix2time(time_t); /* Infer TM_ZONE on systems where this information is known, but suppress guessing if NO_TM_ZONE is defined. Similarly for TM_GMTOFF. */ #if (defined __GLIBC__ \ + || defined __tm_zone /* musl */ \ || defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__ \ || (defined __APPLE__ && defined __MACH__)) # if !defined TM_GMTOFF && !defined NO_TM_GMTOFF -- 2.37.2