patch from Mark Glines to allow Fuse to be run from a non-master thread
[perl-fuse.git] / Fuse.xs
diff --git a/Fuse.xs b/Fuse.xs
index 43b62f0..e6c293b 100644 (file)
--- a/Fuse.xs
+++ b/Fuse.xs
@@ -834,7 +834,7 @@ perl_fuse_main(...)
        threaded = SvIV(ST(1));
        if(threaded) {
 #ifdef FUSE_USE_ITHREADS
-               master_interp = PERL_GET_INTERP;
+               master_interp = PERL_GET_CONTEXT;
 #else
                fprintf(stderr,"FUSE warning: Your script has requested multithreaded "
                               "mode, but your perl was not built with -Dusethreads.  "