summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/compat/freebsd32/freebsd32_misc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c
index b84e9dd..4d44b6b 100644
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -59,6 +59,7 @@ __FBSDID("$FreeBSD$");
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <sys/stat.h>
+#include <sys/syscall.h>
#include <sys/syscallsubr.h>
#include <sys/sysctl.h>
#include <sys/sysent.h>
@@ -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
OpenPOWER on IntegriCloud