From 03154ade2a4c1d9ce37f122e1cacaf29260841a1 Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu Date: Mon, 23 Jul 2018 19:49:54 +0000 Subject: [PATCH] Use __riscv to determine building for RISC-V Reviewed by: br Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D16398 --- sys/vm/vm_unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/vm/vm_unix.c b/sys/vm/vm_unix.c index 8a3203c8996f..10d6d85c2158 100644 --- a/sys/vm/vm_unix.c +++ b/sys/vm/vm_unix.c @@ -69,7 +69,7 @@ struct break_args { int sys_break(struct thread *td, struct break_args *uap) { -#if !defined(__aarch64__) && !defined(__riscv__) +#if !defined(__aarch64__) && !defined(__riscv) uintptr_t addr; int error; @@ -78,9 +78,9 @@ sys_break(struct thread *td, struct break_args *uap) if (error == 0) td->td_retval[0] = addr; return (error); -#else /* defined(__aarch64__) || defined(__riscv__) */ +#else /* defined(__aarch64__) || defined(__riscv) */ return (ENOSYS); -#endif /* defined(__aarch64__) || defined(__riscv__) */ +#endif /* defined(__aarch64__) || defined(__riscv) */ } int