Jan. 13, 2024
11:01 p.m.
* 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