Explorar el Código

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

git-svn-id: trunk@20773 -
pierre hace 13 años
padre
commit
ae83b5ce92
Se han modificado 1 ficheros con 3 adiciones y 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;