diff options
Diffstat (limited to 'pk/syscall.c')
-rw-r--r-- | pk/syscall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pk/syscall.c b/pk/syscall.c index e6b2454..9f3b739 100644 --- a/pk/syscall.c +++ b/pk/syscall.c @@ -320,7 +320,7 @@ int sys_getuid() uintptr_t sys_mmap(uintptr_t addr, size_t length, int prot, int flags, int fd, off_t offset) { -#ifdef __riscv32 +#if __riscv_xlen == 32 if (offset != (offset << 12 >> 12)) return -ENXIO; offset <<= 12; |