From: deraadt Date: Wed, 28 Jul 2010 16:15:25 +0000 (+0000) Subject: more #ifdef needed for the case of not pegging on a non-MP kernel X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=46200230a87a430f3b9f93f4bbbe62041247fa7d;p=openbsd more #ifdef needed for the case of not pegging on a non-MP kernel --- 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)