Explorar o código

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

git-svn-id: trunk@20773 -
pierre %!s(int64=13) %!d(string=hai) anos
pai
achega
ae83b5ce92
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      rtl/unix/x86.pp

+ 3 - 0
rtl/unix/x86.pp

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