summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2016-03-13 20:01:17 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2016-03-13 20:04:26 -0400
commit2d639e2012296899a0413e72e601dcaa82f81599 (patch)
treec01e3f8a6bfaddf9734241385607150f9098fa2a /dist
parent1cb6cce332ab216d091c7d3cbabf621acd293a71 (diff)
downloadperl-2d639e2012296899a0413e72e601dcaa82f81599.tar.gz
Time-HiRes: the mutex needs init
Diffstat (limited to 'dist')
-rw-r--r--dist/Time-HiRes/HiRes.xs5
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)