From 3f4dd5ac9b5291716e804921ecdd620d277114c0 Mon Sep 17 00:00:00 2001 From: pierre Date: Tue, 8 Nov 2011 17:01:02 +0000 Subject: [PATCH] * Fix parameter type for sigsuspend syscall for OpenBSD git-svn-id: trunk@19609 - --- rtl/bsd/bunxsysc.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rtl/bsd/bunxsysc.inc b/rtl/bsd/bunxsysc.inc index df36938e78..9dc0306616 100644 --- a/rtl/bsd/bunxsysc.inc +++ b/rtl/bsd/bunxsysc.inc @@ -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}