Also use syscall_nr_fstatat for FpStat function for riscv32 cpu

git-svn-id: trunk@43528 -
This commit is contained in:
pierre 2019-11-20 23:04:33 +00:00
parent b990c59693
commit 9bd19b050b

View File

@ -114,7 +114,7 @@ function Fpstat(path: pchar; var buf: stat):cint; [public, alias : 'FPC_SYSC_STA
begin
{ standard stat call is 32 bit on sparc64, so explicitly force a stat64 call }
{$if defined(cpu64) and not(defined(cpusparc64))}
{$if (defined(cpu64) or defined(riscv32)) and not(defined(cpusparc64))}
{$if defined(generic_linux_syscalls)}
Fpstat:=do_syscall(syscall_nr_fstatat,AT_FDCWD,TSysParam(path),TSysParam(@buf),0);
{$else}