diff options
Diffstat (limited to 'jpl')
-rw-r--r-- | jpl/JNI/JNI.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jpl/JNI/JNI.pm b/jpl/JNI/JNI.pm index c3ade26ff7..cee17791cc 100644 --- a/jpl/JNI/JNI.pm +++ b/jpl/JNI/JNI.pm @@ -198,7 +198,7 @@ sub AUTOLOAD { ($constname = $AUTOLOAD) =~ s/.*:://; my $val = constant($constname, @_ ? $_[0] : 0); if ($! != 0) { - if ($! =~ /Invalid/) { + if ($! =~ /Invalid/ || $!{EINVAL}) { $AutoLoader::AUTOLOAD = $AUTOLOAD; goto &AutoLoader::AUTOLOAD; } |