summaryrefslogtreecommitdiff
path: root/Lib/octave
diff options
context:
space:
mode:
authorKarl Wette <karl.wette@ligo.org>2018-05-10 22:04:30 +1000
committerKarl Wette <karl.wette@ligo.org>2018-05-12 22:25:07 +1000
commitce67bce72e8b82c47295c320dd990d30d4c4bbde (patch)
treec1f48cbd06209d7152f9fdb470e00d3eee614484 /Lib/octave
parentdf92ad6ebcb0995f04194b38ee19e0b7f08c730a (diff)
downloadswig-ce67bce72e8b82c47295c320dd990d30d4c4bbde.tar.gz
Lib/octave: fix call to mlock() for Octave >= 4.4
Diffstat (limited to 'Lib/octave')
-rw-r--r--Lib/octave/octruntime.swg8
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/octave/octruntime.swg b/Lib/octave/octruntime.swg
index d83a27f57..46faade9c 100644
--- a/Lib/octave/octruntime.swg
+++ b/Lib/octave/octruntime.swg
@@ -447,10 +447,12 @@ DEFUN_DLD( SWIG_name, args, nargout, SWIG_name_usage ) {
}
}
-#if !SWIG_OCTAVE_PREREQ(3,2,0)
- mlock(me->name());
-#else
+#if SWIG_OCTAVE_PREREQ(4,4,0)
+ octave::interpreter::the_interpreter()->mlock();
+#elif SWIG_OCTAVE_PREREQ(3,2,0)
mlock();
+#else
+ mlock(me->name());
#endif
}