Include setsysnr.inc and call SetSyscallNumbers if FPC_HAS_SETSYSNR_INC is defined

git-svn-id: trunk@29135 -
This commit is contained in:
pierre 2014-11-23 21:57:33 +00:00
parent 6141820af3
commit 1d1215ede3
2 changed files with 16 additions and 0 deletions

View File

@ -90,4 +90,12 @@ Uses Sysctl;
{$i osmacro.inc} { macro implenenations }
{$i bunxovl.inc} { redefs and overloads implementation }
{$ifdef FPC_HAS_SETSYSNR_INC}
{$I setsysnr.inc}
{$endif FPC_HAS_SETSYSNR_INC}
{$ifdef FPC_HAS_SETSYSNR_INC}
begin
SetSyscallNumbers;
{$endif FPC_HAS_SETSYSNR_INC}
end.

View File

@ -7,5 +7,13 @@ interface
{$i syscallh.inc}
implementation
{$ifdef FPC_HAS_SETSYSNR_INC}
{$define FPC_COMPILING_SYSCALL_UNIT}
{$I setsysnr.inc}
{$endif FPC_HAS_SETSYSNR_INC}
{$ifdef FPC_HAS_SETSYSNR_INC}
begin
SetSyscallNumbers;
{$endif FPC_HAS_SETSYSNR_INC}
end.