diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2016-03-13 20:01:17 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2016-03-13 20:04:26 -0400 |
commit | 2d639e2012296899a0413e72e601dcaa82f81599 (patch) | |
tree | c01e3f8a6bfaddf9734241385607150f9098fa2a /dist | |
parent | 1cb6cce332ab216d091c7d3cbabf621acd293a71 (diff) | |
download | perl-2d639e2012296899a0413e72e601dcaa82f81599.tar.gz |
Time-HiRes: the mutex needs init
Diffstat (limited to 'dist')
-rw-r--r-- | dist/Time-HiRes/HiRes.xs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dist/Time-HiRes/HiRes.xs b/dist/Time-HiRes/HiRes.xs index fd78fd9df2..8b8f25c594 100644 --- a/dist/Time-HiRes/HiRes.xs +++ b/dist/Time-HiRes/HiRes.xs @@ -940,6 +940,11 @@ BOOT: } # endif #endif +#if defined(PERL_DARWIN) +# ifdef USE_ITHREADS + MUTEX_INIT(&darwin_time_mutex); +# endif +#endif } #if defined(USE_ITHREADS) && defined(MY_CXT_KEY) |