mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-25 15:09:22 +02:00
Also use syscall_nr_fstatat for FpStat function for riscv32 cpu
git-svn-id: trunk@43528 -
This commit is contained in:
parent
b990c59693
commit
9bd19b050b
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user