diff options
author | 2015-01-17 17:44:15 +0000 | |
---|---|---|
committer | 2015-01-17 17:44:15 +0000 | |
commit | a5d369ffc8bfac6ac5681f480c1f48ae8c923ef3 (patch) | |
tree | 9ac975780305f6ce9ebb39bde727e98ca3b5138d | |
parent | use NGROUPS_MAX instead of NGROUPS (diff) | |
download | wireguard-openbsd-a5d369ffc8bfac6ac5681f480c1f48ae8c923ef3.tar.xz wireguard-openbsd-a5d369ffc8bfac6ac5681f480c1f48ae8c923ef3.zip |
guard usingacpi variable inside NACPI. from oyvind jaegtnes
-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 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; |