summaryrefslogtreecommitdiff
path: root/sys/kern/kern_xxx.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-07-28 16:15:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-07-28 16:15:26 +0000
commit4fc287e698ae86eee93cb8520b8002bef7fe8078 (patch)
treeb705c98ba5ed9a9f68ea5e1ef98d0c0708beed20 /sys/kern/kern_xxx.c
parent47535264e6bc78452b134f216477261702f5903f (diff)
more #ifdef needed for the case of not pegging on a non-MP kernel
Diffstat (limited to 'sys/kern/kern_xxx.c')
-rw-r--r--sys/kern/kern_xxx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_xxx.c b/sys/kern/kern_xxx.c
index 594fd72aebb..c03be03e462 100644
--- a/sys/kern/kern_xxx.c
+++ b/sys/kern/kern_xxx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_xxx.c,v 1.17 2010/07/28 15:59:38 kettenis Exp $ */
+/* $OpenBSD: kern_xxx.c,v 1.18 2010/07/28 16:15:25 deraadt Exp $ */
/* $NetBSD: kern_xxx.c,v 1.32 1996/04/22 01:38:41 christos Exp $ */
/*
@@ -51,8 +51,10 @@ sys_reboot(struct proc *p, void *v, register_t *retval)
struct sys_reboot_args /* {
syscallarg(int) opt;
} */ *uap = v;
+#ifdef MULTIPROCESSOR
CPU_INFO_ITERATOR cii;
struct cpu_info *ci;
+#endif
int error;
if ((error = suser(p, 0)) != 0)