summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_evcount.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2004-12-24 17:28:13 +0000
committermiod <miod@openbsd.org>2004-12-24 17:28:13 +0000
commit9e2e8501e9302d725ae2203f3465a8cb233466ce (patch)
tree27f11e38e16473dec4fbc8a218087a2349a541b0 /sys/kern/subr_evcount.c
parentScare users so that they don't use option SMALL_KERNEL, because our (diff)
downloadwireguard-openbsd-9e2e8501e9302d725ae2203f3465a8cb233466ce.tar.xz
wireguard-openbsd-9e2e8501e9302d725ae2203f3465a8cb233466ce.zip
Do not provide the KERN_EMUL, KERN_EVCOUNT, KERN_INTRCNT, KERN_PROC* and
HW_SENSORS sysctl trees if option SMALL_KERNEL. ok deraadt@
Diffstat (limited to 'sys/kern/subr_evcount.c')
-rw-r--r--sys/kern/subr_evcount.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/subr_evcount.c b/sys/kern/subr_evcount.c
index 76fe02019aa..4657251db9c 100644
--- a/sys/kern/subr_evcount.c
+++ b/sys/kern/subr_evcount.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_evcount.c,v 1.5 2004/11/26 21:23:06 miod Exp $ */
+/* $OpenBSD: subr_evcount.c,v 1.6 2004/12/24 17:28:13 miod Exp $ */
/*
* Copyright (c) 2004 Artur Grabowski <art@openbsd.org>
* Copyright (c) 2004 Aaron Campbell <aaron@openbsd.org>
@@ -84,6 +84,8 @@ evcount_detach(ec)
TAILQ_REMOVE(&evcount_list, ec, next);
}
+#ifndef SMALL_KERNEL
+
int
evcount_sysctl(name, namelen, oldp, oldlenp, newp, newlen)
int *name;
@@ -147,3 +149,4 @@ evcount_sysctl(name, namelen, oldp, oldlenp, newp, newlen)
return (error);
}
+#endif /* SMALL_KERNEL */