mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 15:19:25 +02:00
* fix timespec=nil for -dgeneric_linux_syscalls (aarch64) case.
git-svn-id: trunk@33392 -
This commit is contained in:
parent
78da04f8d5
commit
2221e4e4bd
@ -463,12 +463,18 @@ Function fpSelect(N:cint;readfds,writefds,exceptfds:pfdSet;TimeOut:PTimeVal):cin
|
||||
{$if defined(generic_linux_syscalls)}
|
||||
|
||||
var ts : timespec;
|
||||
pts : PTimeSpec;
|
||||
begin
|
||||
ts.tv_sec := timeout^.tv_sec;
|
||||
ts.tv_nsec := timeout^.tv_usec * 1000;
|
||||
pts:=nil;
|
||||
if assigned(timeout) then
|
||||
begin
|
||||
pts:=@ts;
|
||||
ts.tv_sec := timeout^.tv_sec;
|
||||
ts.tv_nsec := timeout^.tv_usec * 1000;
|
||||
end;
|
||||
fpSelect:=do_syscall(syscall_nr_pselect6,n,
|
||||
tsysparam(readfds),tsysparam(writefds),
|
||||
tsysparam(exceptfds),tsysparam(@ts),0);
|
||||
tsysparam(exceptfds),tsysparam(pts),0);
|
||||
end;
|
||||
|
||||
{$else}
|
||||
|
Loading…
Reference in New Issue
Block a user