[tz] [PROPOSED] Draft next POSIX has tm_gmtoff, tm_zone
Paul Eggert
eggert at cs.ucla.edu
Sat Jan 13 23:01:23 UTC 2024
* private.h (TM_GMTOFF, TM_ZONE): Treat draft next POSIX like
glibc etc., since it requires tm_gmtoff and tm_zone.
---
private.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/private.h b/private.h
index 07316289..8eff90b7 100644
--- a/private.h
+++ b/private.h
@@ -768,7 +768,8 @@ 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__ \
+#if (200809 < _POSIX_VERSION \
+ || defined __GLIBC__ \
|| defined __tm_zone /* musl */ \
|| defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__ \
|| (defined __APPLE__ && defined __MACH__))
--
2.40.1
More information about the tz
mailing list