mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 07:28:26 +02:00
* Fix parameter type for sigsuspend syscall for OpenBSD
git-svn-id: trunk@19609 -
This commit is contained in:
parent
98c7a5e4b0
commit
3f4dd5ac9b
@ -47,7 +47,12 @@ function FPsigsuspend(const sigmask:sigset_t):cint;
|
||||
}
|
||||
|
||||
begin
|
||||
{$ifdef OPENBSD}
|
||||
{ OpenBSD sigsuspend syscall wants a simple int as arg }
|
||||
FPsigsuspend:= do_syscall(syscall_nr_sigsuspend,TSysParam(sigmask[0]));
|
||||
{$else}
|
||||
FPsigsuspend:= do_syscall(syscall_nr_sigsuspend,TSysParam(@sigmask));
|
||||
{$endif}
|
||||
end;
|
||||
|
||||
{$ifndef FPC_SYS_SIGTIMEDWAIT_UNAVAILABLE}
|
||||
|
Loading…
Reference in New Issue
Block a user