This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
At least a temporary fix for the mysterious scope core dumps
[perl5.git] / fakethr.h
index 596e8a9..098fefe 100644 (file)
--- a/fakethr.h
+++ b/fakethr.h
@@ -1,12 +1,12 @@
 typedef int perl_mutex;
 typedef int perl_key;
 
-typedef struct thread *perl_os_thread;
+typedef struct perl_thread *perl_os_thread;
 /* With fake threads, thr is global(ish) so we don't need dTHR */
 #define dTHR extern int errno
 
 struct perl_wait_queue {
-    struct thread *            thread;
+    struct perl_thread *       thread;
     struct perl_wait_queue *   next;
 };
 typedef struct perl_wait_queue *perl_cond;
@@ -34,7 +34,7 @@ struct thread_intern {
  * something a bit different for XS code.
  */
 
-#define SCHEDULE() return schedule(), op
+#define SCHEDULE() return schedule(), PL_op
 
 #define MUTEX_LOCK(m)
 #define MUTEX_UNLOCK(m)