summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorOleg Safiullin <form@cvs.openbsd.org>2008-12-29 08:29:36 +0000
committerOleg Safiullin <form@cvs.openbsd.org>2008-12-29 08:29:36 +0000
commitcb7a5b3c3f14f78ed7b5cbd9a01a1070c2187c86 (patch)
tree76eeb0b4c5fe5959bc39dad83f8deb63100599c8 /sys/arch
parent146cc56fe61540993a60abccdd59e2bdc62e07b0 (diff)
fix compiling w/o apm(4)
ok deraadt
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/i386/mpbios.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/mpbios.c b/sys/arch/i386/i386/mpbios.c
index 003feeccf40..b328e9c9863 100644
--- a/sys/arch/i386/i386/mpbios.c
+++ b/sys/arch/i386/i386/mpbios.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpbios.c,v 1.28 2008/12/26 17:09:52 deraadt Exp $ */
+/* $OpenBSD: mpbios.c,v 1.29 2008/12/29 08:29:35 form Exp $ */
/* $NetBSD: mpbios.c,v 1.2 2002/10/01 12:56:57 fvdl Exp $ */
/*-
@@ -268,6 +268,7 @@ mpbios_probe(struct device *self)
struct mp_map t;
+#if NAPM > 0 && NACPI > 0
/*
* If we have acpi but chose to use apm, then we really should
* not go use mpbios. Systems with usable acpi typically have
@@ -275,6 +276,7 @@ mpbios_probe(struct device *self)
*/
if (haveacpibutusingapm)
return (0);
+#endif
/*
* Skip probe if someone else (e.g. acpi) already provided the