aboutsummaryrefslogtreecommitdiff
path: root/tools/build/cross-build/fake_sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/cross-build/fake_sysctl.c')
-rw-r--r--tools/build/cross-build/fake_sysctl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/build/cross-build/fake_sysctl.c b/tools/build/cross-build/fake_sysctl.c
index 7b9524e1626b..289fb83652f6 100644
--- a/tools/build/cross-build/fake_sysctl.c
+++ b/tools/build/cross-build/fake_sysctl.c
@@ -37,13 +37,15 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include <sys/sysctl.h>
+
#include <err.h>
#include <string.h>
#include <sysexits.h>
int
-__freebsd_sysctlbyname(
- const char *name, void *oldp, size_t *oldlenp, void *newp, size_t newlen)
+__freebsd_sysctlbyname(const char *name, void *oldp, size_t *oldlenp,
+ const void *newp, size_t newlen)
{
if (strcmp(name, "kern.vm_guest") == 0) {
if (!oldp || !oldlenp)