Author: lwhsu (ports committer) Date: Mon Jul 23 19:49:54 2018 New Revision: 336650 URL: https://svnweb.freebsd.org/changeset/base/336650
Log: Use __riscv to determine building for RISC-V Reviewed by: br Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D16398 Modified: head/sys/vm/vm_unix.c Modified: head/sys/vm/vm_unix.c ============================================================================== --- head/sys/vm/vm_unix.c Mon Jul 23 19:39:20 2018 (r336649) +++ head/sys/vm/vm_unix.c Mon Jul 23 19:49:54 2018 (r336650) @@ -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 _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"