diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c index b84e9dd6bdab..4d44b6bad41d 100644 --- a/sys/compat/freebsd32/freebsd32_misc.c +++ b/sys/compat/freebsd32/freebsd32_misc.c @@ -59,6 +59,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -927,7 +928,7 @@ freebsd32_semsys(struct thread *td, struct freebsd32_semsys_args *uap) /* * Vector through to semsys if it is loaded. */ - return sysent[169].sy_call(td, uap); + return sysent[SYS_semsys].sy_call(td, uap); } int @@ -936,7 +937,7 @@ freebsd32_msgsys(struct thread *td, struct freebsd32_msgsys_args *uap) /* * Vector through to msgsys if it is loaded. */ - return sysent[170].sy_call(td, uap); + return sysent[SYS_msgsys].sy_call(td, uap); } int @@ -945,7 +946,7 @@ freebsd32_shmsys(struct thread *td, struct freebsd32_shmsys_args *uap) /* * Vector through to shmsys if it is loaded. */ - return sysent[171].sy_call(td, uap); + return sysent[SYS_shmsys].sy_call(td, uap); } int