summaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-03-28 06:11:44 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-03-28 06:11:44 -0700
commit1f902ca63eba9071da5d1da2e861fe49028d32b4 (patch)
treecc3a66e36160da95e3a9ab8fc18d2209abd38a15 /time.c
parent231f47d20444fab037f91c0a25ebed84690a0a21 (diff)
downloadtxr-285.tar.gz
txr-285.tar.bz2
txr-285.zip
Version 285.txr-285
* RELNOTES: Updated. * configure (txr_ver): Bumped version. * stdlib/ver.tl (lib-version): Bumped. * txr.1: Bumped version and date. * txr.vim, tl.vim: Regenerated. * time.c (struct tm_wrap): Fix for platforms without HAVE_TM_ZONE. We still need tm_wrap defined, just not the zone member. Out of the platforms I build releases for, Solaris is the only one like this.
Diffstat (limited to 'time.c')
-rw-r--r--time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/time.c b/time.c
index 632a9506..8f4017a1 100644
--- a/time.c
+++ b/time.c
@@ -44,12 +44,12 @@
#include "eval.h"
#include "time.h"
-#if HAVE_TM_ZONE
struct tm_wrap {
struct tm tm;
+#if HAVE_TM_ZONE
const char *zone;
-};
#endif
+};
val time_s, time_local_s, time_utc_s, time_string_s, time_parse_s;
val year_s, month_s, day_s, hour_s, min_s, sec_s, wday_s, yday_s;