diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-12-01 19:08:43 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-12-01 19:08:43 +0000 |
commit | b25135e2cc37de44b2b83890d50211647236e903 (patch) | |
tree | 748fd4672999b2de5e410565abe57714474dd560 /sys/arch/i386 | |
parent | abaf8bbd202436db48d1c373a405aa993e927706 (diff) |
Let apmless non-mp kernels compile, from chris@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/bios.c | 7 |
1 files changed, 5 insertions, 2 deletions
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; |