Ticket #287: 0002-Use-tm_gmtoff-for-all-GNU-environment-platforms-Linu.patch

File 0002-Use-tm_gmtoff-for-all-GNU-environment-platforms-Linu.patch, 1.3 KB (added by Jim Ursetto, 14 years ago)
  • runtime.c

    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 
    77397739                  C_fix(tmt->tm_mday), C_fix(tmt->tm_mon), C_fix(tmt->tm_year),
    77407740                  C_fix(tmt->tm_wday), C_fix(tmt->tm_yday),
    77417741                  tmt->tm_isdst > 0 ? C_SCHEME_TRUE : C_SCHEME_FALSE,
    7742 #ifdef C_MACOSX
     7742#ifdef C_GNU_ENV
    77437743                  /* negative for west of UTC, but we want positive */
    77447744                  C_fix(-tmt->tm_gmtoff)
    77457745#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 */
    77477747#else
    7748                   C_fix(mode == C_SCHEME_FALSE ? timezone : 0)
     7748                  C_fix(mode == C_SCHEME_FALSE ? timezone : 0)  /* does not account for DST */
    77497749#endif
    77507750                  );
    77517751  C_kontinue(k, info);