Pipe syscall for DragonFly also uses EAX:EDX for result, like FreeBSD

git-svn-id: trunk@31209 -
This commit is contained in:
pierre 2015-07-14 21:58:27 +00:00
parent b67b407d2d
commit f08fa883e2

View File

@ -376,8 +376,11 @@ end;
function __pipe_call(sysnr:TSysParam):TSysResult; {$ifdef cpui386}oldfpccall{$endif} external name 'FPC_DOSYS0';
{$if defined(freebsd) or defined (dragonfly)}
{$define PIPE_RESULT_IN_EAX_AND_EDX}
{$endif}
Function FPpipe(var fildes : tfildes):cint;
{$ifndef freebsd}
{$ifndef PIPE_RESULT_IN_EAX_AND_EDX}
begin
fppipe:=do_syscall(syscall_nr_pipe,TSysParam(@fildes));
end;