Browse Source

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

git-svn-id: trunk@20773 -
pierre 13 năm trước cách đây
mục cha
commit
ae83b5ce92
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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;