summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/dl_win32.xs15
1 files changed, 15 insertions, 0 deletions
diff --git a/win32/dl_win32.xs b/win32/dl_win32.xs
index 6c094d22fd..60ec703b92 100644
--- a/win32/dl_win32.xs
+++ b/win32/dl_win32.xs
@@ -187,4 +187,19 @@ dl_error()
OUTPUT:
RETVAL
+#if defined(USE_ITHREADS)
+
+void
+CLONE(...)
+ CODE:
+ MY_CXT_CLONE;
+
+ /* MY_CXT_CLONE just does a memcpy on the whole structure, so to avoid
+ * using Perl variables that belong to another thread, we create our
+ * own for this thread.
+ */
+ MY_CXT.x_dl_last_error = newSVpvn("", 0);
+
+#endif
+
# end.