Browse Source

Riscv64 linux also needs _STAT_VER_LINUX to be zero for correct libc rtl behavior

Pierre Muller 6 months ago
parent
commit
d2f5bbac50
1 changed files with 2 additions and 2 deletions
  1. 2 2
      rtl/linux/ostypes.inc

+ 2 - 2
rtl/linux/ostypes.inc

@@ -75,14 +75,14 @@ TYPE
 { include /include/asm-<cpu>/posix-types.h                       }
 
 const
-{$if not defined(cpux86_64) and not defined (cpuaarch64)}
+{$if not defined(cpux86_64) and not defined (cpuaarch64) and not defined (cpuriscv64)}
   _STAT_VER_LINUX_OLD = 1;
   _STAT_VER_KERNEL = 1;
   _STAT_VER_SVR4 = 2;
   _STAT_VER_LINUX = 3;
 {$else}
   _STAT_VER_KERNEL = 0;
-{$if defined(cpuaarch64)}
+{$if defined(cpuaarch64) or defined(cpuriscv64)}
   _STAT_VER_LINUX = 0;
 {$else}
   _STAT_VER_LINUX = 1;