From 46200230a87a430f3b9f93f4bbbe62041247fa7d Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 28 Jul 2010 16:15:25 +0000 Subject: [PATCH] more #ifdef needed for the case of not pegging on a non-MP kernel --- sys/kern/kern_xxx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.20.1