mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 19:29:24 +02:00
* fix fstat to use 64 bit syscall as well
git-svn-id: trunk@5123 -
This commit is contained in:
parent
5cb1af6e2a
commit
9f22b00219
@ -305,7 +305,11 @@ end;
|
||||
function Fpfstat(fd : cint; var sb : stat): cint; [public, alias : 'FPC_SYSC_FSTAT'];
|
||||
|
||||
begin
|
||||
{$if defined(cpu64) and not defined(cpupowerpc64)}
|
||||
FpFStat:=do_SysCall(syscall_nr_fstat,TSysParam(fd),TSysParam(@sb));
|
||||
{$else}
|
||||
FpFStat:=do_SysCall(syscall_nr_fstat64,TSysParam(fd),TSysParam(@sb));
|
||||
{$endif}
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user