Remove the $ENV{PERL_CORE} boilerplate from DynaLoader's tests.
[p5sagit/p5-mst-13.2.git] / ext / DynaLoader / dl_beos.xs
index 3453d68..2b310ac 100644 (file)
@@ -116,4 +116,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.