summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--MDK/Common/System.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/MDK/Common/System.pm b/MDK/Common/System.pm
index d792383..04993d7 100644
--- a/MDK/Common/System.pm
+++ b/MDK/Common/System.pm
@@ -188,6 +188,7 @@ L<MDK::Common>
use MDK::Common::Math;
use MDK::Common::File;
+require 'syscall.ph';
use Exporter;
our @ISA = qw(Exporter);
@@ -294,9 +295,7 @@ sub list_users() {
sub syscall_ {
my $f = shift;
-
- require 'syscall.ph';
- syscall(&{"main::SYS_$f"}, @_) == 0;
+ syscall(&{"MDK::Common::System::SYS_$f"}, @_) == 0
}