From: Rafael Garcia-Suarez Date: Mon, 19 Jan 2009 10:08:17 +0000 (+0100) Subject: Be sure to call L_R_TZSET before localtime_r() X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4c6e94b1e729ad5095947e2c098f9651932479d7;p=p5sagit%2Fp5-mst-13.2.git Be sure to call L_R_TZSET before localtime_r() --- diff --git a/time64.h b/time64.h index 4d12046..329d425 100644 --- a/time64.h +++ b/time64.h @@ -53,9 +53,9 @@ Time64_T timegm64 (struct TM *); /* Not everyone has gm/localtime_r(), provide a replacement */ #ifdef HAS_LOCALTIME_R -# define LOCALTIME_R(clock, result) localtime_r(clock, result) +# define LOCALTIME_R(clock, result) (L_R_TZSET localtime_r(clock, result)) #else -# define LOCALTIME_R(clock, result) fake_localtime_r(clock, result) +# define LOCALTIME_R(clock, result) (L_R_TZSET fake_localtime_r(clock, result)) #endif #ifdef HAS_GMTIME_R # define GMTIME_R(clock, result) gmtime_r(clock, result)