From c468220e5a9fcedbaa4c58d0154c2088451f2da7 Mon Sep 17 00:00:00 2001
From: zbigniew <zbigniewsz@gmail.com>
Date: Mon, 19 Jul 2010 15:33:35 -0500
Subject: [PATCH 2/2] Use tm_gmtoff for all GNU environment platforms (Linux, XXXBSD)
---
runtime.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/runtime.c b/runtime.c
index 55eb2e8..4d05a7d 100644
a
|
b
|
void C_ccall C_decode_seconds(C_word c, C_word closure, C_word k, C_word secs, C |
7739 | 7739 | C_fix(tmt->tm_mday), C_fix(tmt->tm_mon), C_fix(tmt->tm_year), |
7740 | 7740 | C_fix(tmt->tm_wday), C_fix(tmt->tm_yday), |
7741 | 7741 | tmt->tm_isdst > 0 ? C_SCHEME_TRUE : C_SCHEME_FALSE, |
7742 | | #ifdef C_MACOSX |
| 7742 | #ifdef C_GNU_ENV |
7743 | 7743 | /* negative for west of UTC, but we want positive */ |
7744 | 7744 | C_fix(-tmt->tm_gmtoff) |
7745 | 7745 | #elif defined(__CYGWIN__) || defined(__MINGW32__) || defined(_WIN32) || defined(__WINNT__) |
7746 | | C_fix(mode == C_SCHEME_FALSE ? _timezone : 0) |
| 7746 | C_fix(mode == C_SCHEME_FALSE ? _timezone : 0) /* does not account for DST */ |
7747 | 7747 | #else |
7748 | | C_fix(mode == C_SCHEME_FALSE ? timezone : 0) |
| 7748 | C_fix(mode == C_SCHEME_FALSE ? timezone : 0) /* does not account for DST */ |
7749 | 7749 | #endif |
7750 | 7750 | ); |
7751 | 7751 | C_kontinue(k, info); |