summaryrefslogtreecommitdiff
path: root/time64.c
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2009-01-09 12:55:45 -0600
committerCraig A. Berry <craigberry@mac.com>2009-01-09 12:55:45 -0600
commit478780ab3df0743bf944175d5aa87dba462c40e8 (patch)
tree9d036c99ea37428c5278bd8c85d426d119c31ed4 /time64.c
parentb8486b9d23e91feb9cbf1c92c469f57fe551c78f (diff)
downloadperl-478780ab3df0743bf944175d5aa87dba462c40e8.tar.gz
fake_localtime_r and fake_gmtime_r may need thread context.
They definitely need it on VMS.
Diffstat (limited to 'time64.c')
-rw-r--r--time64.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/time64.c b/time64.c
index 3ac6707393..c357ce1a6c 100644
--- a/time64.c
+++ b/time64.c
@@ -332,6 +332,7 @@ void copy_big_TM_to_little_tm(const struct TM *src, struct tm *dest) {
/* Simulate localtime_r() to the best of our ability */
struct tm * fake_localtime_r(const time_t *clock, struct tm *result) {
+ dTHX; /* in case the following is defined as Perl_my_localtime(aTHX_ ...) */
const struct tm *static_result = localtime(clock);
assert(result != NULL);
@@ -349,6 +350,7 @@ struct tm * fake_localtime_r(const time_t *clock, struct tm *result) {
/* Simulate gmtime_r() to the best of our ability */
struct tm * fake_gmtime_r(const time_t *clock, struct tm *result) {
+ dTHX; /* in case the following is defined as Perl_my_gmtime(aTHX_ ...) */
const struct tm *static_result = gmtime(clock);
assert(result != NULL);