mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 05:59:28 +02:00
Return -1 for fpIOPL and set errno to ESysENoSys for non-linux systems
git-svn-id: trunk@20773 -
This commit is contained in:
parent
55665c6713
commit
ae83b5ce92
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user