From ce67bce72e8b82c47295c320dd990d30d4c4bbde Mon Sep 17 00:00:00 2001 From: Karl Wette Date: Thu, 10 May 2018 22:04:30 +1000 Subject: Lib/octave: fix call to mlock() for Octave >= 4.4 --- Lib/octave/octruntime.swg | 8 +++++--- 1 file 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 } -- cgit v1.2.1