Browse Source

Return -1 for fpIOPL and set errno to ESysENoSys for non-linux systems

git-svn-id: trunk@20773 -
pierre 13 years ago
parent
commit
ae83b5ce92
1 changed files with 3 additions and 0 deletions
  1. 3 0
      rtl/unix/x86.pp

+ 3 - 0
rtl/unix/x86.pp

@@ -519,6 +519,9 @@ Function fpIoPL(Level : cint) : cint;
 begin
 begin
  {$ifdef Linux}
  {$ifdef Linux}
   fpIOPL:=do_Syscall(Syscall_nr_iopl,TSysParam(Level));
   fpIOPL:=do_Syscall(Syscall_nr_iopl,TSysParam(Level));
+ {$else}
+  fpIOPL:=-1;
+  FpSetErrNo(ESysENoSys);
  {$endif}
  {$endif}
 end;
 end;