On 2026-07-01 02:48, Dag-Erling Smørgrav wrote:
- (as circa 2025 FreeBSD builds its localtime.c with -DDETECT_TZ_CHANGES),
+ (as circa 2026 FreeBSD builds its localtime.c with -DDETECT_TZ_CHANGES),
and to -1 otherwise. */
#ifndef TZ_CHANGE_INTERVAL
# ifdef DETECT_TZ_CHANGES
No we don't, it's a default-off build option.
Thanks for letting me know. I installed the attached to fix the comment.
From 910c5bdeda8336d7a4e2f7e7a563c8c090d85036 Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email protected]>
Date: Wed, 1 Jul 2026 12:21:18 -0700
Subject: [PATCH] Update TZ_CHANGE_INTERVAL comment
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* localtime.c (TZ_CHANGE_INTERVAL): -DDETECT_TZ_CHANGES is used only
optionally in FreeBSD builds. (Reported by Dag-Erling Smørgrav.)
Also, omit “circa 2026”, so we needn’t update the comment every year.
---
localtime.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/localtime.c b/localtime.c
index 158f0150..be3fe1d5 100644
--- a/localtime.c
+++ b/localtime.c
@@ -227,7 +227,7 @@ struct timespec { time_t tv_sec; long tv_nsec; };
/* How many seconds to wait before checking the default TZif file again.
Negative means no checking. Default to 61 if DETECT_TZ_CHANGES
- (as circa 2026 FreeBSD builds its localtime.c with -DDETECT_TZ_CHANGES),
+ (as FreeBSD optionally builds its localtime.c with -DDETECT_TZ_CHANGES),
and to -1 otherwise. */
#ifndef TZ_CHANGE_INTERVAL
# ifdef DETECT_TZ_CHANGES
--
2.53.0