From 8572b25d870f5a82a300ce816436b52f0f8afb0a Mon Sep 17 00:00:00 2001 From: Benjamin Holzman Date: Wed, 19 Jul 2006 03:11:09 -0400 Subject: RE: [perl #26136] localtime(3) calls tzset(3), but localtime_r(3) may not. From: "Benjamin Holzman" Message-ID: <010801c6ab24$09b9ed30$ce0515ac@office.iseoptions.com> p4raw-id: //depot/perl@29209 --- reentr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'reentr.h') diff --git a/reentr.h b/reentr.h index e0273bd4dd..ffa1090a77 100644 --- a/reentr.h +++ b/reentr.h @@ -1346,10 +1346,10 @@ typedef struct { # if defined(PERL_REENTR_API) && (PERL_REENTR_API+0 == 1) # undef localtime # if !defined(localtime) && LOCALTIME_R_PROTO == REENTRANT_PROTO_S_TS -# define localtime(a) (localtime_r(a, &PL_reentrant_buffer->_localtime_struct) ? &PL_reentrant_buffer->_localtime_struct : 0) +# define localtime(a) (L_R_TZSET localtime_r(a, &PL_reentrant_buffer->_localtime_struct) ? &PL_reentrant_buffer->_localtime_struct : 0) # endif /* if defined(PERL_REENTR_API) && (PERL_REENTR_API+0 == 1) */ # if !defined(localtime) && LOCALTIME_R_PROTO == REENTRANT_PROTO_I_TS -# define localtime(a) (localtime_r(a, &PL_reentrant_buffer->_localtime_struct) == 0 ? &PL_reentrant_buffer->_localtime_struct : 0) +# define localtime(a) (L_R_TZSET localtime_r(a, &PL_reentrant_buffer->_localtime_struct) == 0 ? &PL_reentrant_buffer->_localtime_struct : 0) # endif /* if defined(PERL_REENTR_API) && (PERL_REENTR_API+0 == 1) */ # endif /* HAS_LOCALTIME */ #endif /* HAS_LOCALTIME_R */ -- cgit v1.2.1