From a5d369ffc8bfac6ac5681f480c1f48ae8c923ef3 Mon Sep 17 00:00:00 2001 From: tedu Date: Sat, 17 Jan 2015 17:44:15 +0000 Subject: [PATCH] guard usingacpi variable inside NACPI. from oyvind jaegtnes --- sys/arch/i386/i386/bios.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/arch/i386/i386/bios.c b/sys/arch/i386/i386/bios.c index fdd85216dc5..4265af766de 100644 --- a/sys/arch/i386/i386/bios.c +++ b/sys/arch/i386/i386/bios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bios.c,v 1.107 2014/11/16 12:30:57 deraadt Exp $ */ +/* $OpenBSD: bios.c,v 1.108 2015/01/17 17:44:15 tedu Exp $ */ /* * Copyright (c) 1997-2001 Michael Shalayeff @@ -168,7 +168,10 @@ biosattach(struct device *parent, struct device *self, void *aux) struct smbtable bios; volatile u_int8_t *va; char scratch[64], *str; - int flags, smbiosrev = 0, ncpu = 0, usingacpi = 0; + int flags, smbiosrev = 0, ncpu = 0; +#if NACPI > 0 + int usingacpi = 0; +#endif /* remember flags */ flags = sc->sc_dev.dv_cfdata->cf_flags; -- 2.20.1