* localtime.c (tzdirslashlen): Now an enum, not a const size_t,
as strict C23 requires this for the static_assert that uses
tzdirslashlen when PATH_MAX is defined.
---
 localtime.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/localtime.c b/localtime.c
index 3f3bdce5..ec13ed71 100644
--- a/localtime.c
+++ b/localtime.c
@@ -676,7 +676,7 @@ union input_buffer {
 ATTRIBUTE_NONSTRING
 #endif
 static char const tzdirslash[sizeof TZDIR + OPENAT_TZDIR] = TZDIR "/";
-static size_t const tzdirslashlen = sizeof TZDIR;
+enum { tzdirslashlen = sizeof TZDIR };
 
 /* Local storage needed for 'tzloadbody'.  */
 union local_storage {
-- 
2.48.1

Reply via email to