From b25135e2cc37de44b2b83890d50211647236e903 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 1 Dec 2007 19:08:43 +0000 Subject: Let apmless non-mp kernels compile, from chris@ --- sys/arch/i386/i386/bios.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/i386/i386/bios.c b/sys/arch/i386/i386/bios.c index fdd85d3b360..c19880ab3a9 100644 --- a/sys/arch/i386/i386/bios.c +++ b/sys/arch/i386/i386/bios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bios.c,v 1.73 2007/11/25 16:40:04 jmc Exp $ */ +/* $OpenBSD: bios.c,v 1.74 2007/12/01 19:08:42 miod Exp $ */ /* * Copyright (c) 1997-2001 Michael Shalayeff @@ -145,7 +145,10 @@ biosattach(struct device *parent, struct device *self, void *aux) struct smbtable bios; volatile u_int8_t *va; char scratch[64], *str; - int flags, ncpu = 0; + int flags; +#if NAPM > 0 || defined(MULTIPROCESSOR) + int ncpu = 0; +#endif /* remember flags */ flags = sc->sc_dev.dv_cfdata->cf_flags; -- cgit v1.2.3