Skip to contentSkip to conversation

fix _STAT_VER/_MKNOD_VER for riscv

PATCH New Nick Owens 1 participant 1 message Jun 9, 2025

lore
Share & tools
lore

Nick Owens

author
#0 lore raw

PATCH 1/1 fix _STAT_VER/_MKNOD_VER for riscv

---
 ports/linux/portdefs.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
ports/linux/portdefs.h +2 -2
index 9545550..1b4ce74 100644
@@ -36,7 +36,7 @@ GLIBC_COMPAT_SYMBOL(memcpy,2.0);
 #include <linux/seccomp.h>
 
 #ifndef _STAT_VER
-#if defined (__aarch64__)
+#if defined (__aarch64__) || defined (__riscv)
 #define _STAT_VER 0
 #elif defined (__x86_64__)
 #define _STAT_VER 1
@@ -45,7 +45,7 @@ GLIBC_COMPAT_SYMBOL(memcpy,2.0);
 #endif
 #endif
 #ifndef _MKNOD_VER
-#if defined (__aarch64__)
+#if defined (__aarch64__) || defined(__riscv)
 #define _MKNOD_VER 0
 #elif defined (__x86_64__)
 #define _MKNOD_VER 0
Signature · 1 line
2.45.2