mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-06 03:33:00 +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
|
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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user