summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-04-19 14:28:43 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-04-19 15:50:45 -0400
commit111cc3af4b6132fda47d18683a04985ca7c571c2 (patch)
tree40694f82fd521a29be87ba647e7e710c4cdaadf4 /src
parent17da9c855a49925333433b4308c1b3384c65c50a (diff)
downloadbfs-111cc3af4b6132fda47d18683a04985ca7c571c2.tar.xz
config: Check for struct tm::tm_gmtoff
Diffstat (limited to 'src')
-rw-r--r--src/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.c b/src/parse.c
index c2ae58f..a1155c0 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -1755,7 +1755,7 @@ static int parse_reftime(const struct bfs_parser *parser, struct bfs_expr *expr)
fprintf(stderr, " - %04d-%02d-%02d\n", year, month, tm.tm_mday);
fprintf(stderr, " - %04d-%02d-%02dT%02d:%02d:%02d\n", year, month, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec);
-#if __FreeBSD__
+#if BFS_HAS_TM_GMTOFF
int gmtoff = tm.tm_gmtoff;
#else
int gmtoff = -timezone;