summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2005-11-23 12:13:00 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2005-11-23 12:13:00 +0000
commit0ce88c1aae765d4536e0f911c6ff8285ba02e27f (patch)
tree9e8b14d5df475efd0b1a4a671c76595b80ab53a2
parent46681fadd236e18e8ee4f044520dd7e3f6a6fb66 (diff)
slight shuffle at the top of the file. dont include biovar.h if bio is not
configured
-rw-r--r--sys/dev/ic/ami.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c
index c41478b33eb..a567f9e3427 100644
--- a/sys/dev/ic/ami.c
+++ b/sys/dev/ic/ami.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ami.c,v 1.94 2005/10/11 09:10:49 dlg Exp $ */
+/* $OpenBSD: ami.c,v 1.95 2005/11/23 12:12:59 dlg Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -45,7 +45,7 @@
* Theo de Raadt.
*/
-/*#define AMI_DEBUG */
+#include "bio.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -65,8 +65,11 @@
#include <dev/ic/amireg.h>
#include <dev/ic/amivar.h>
+#if NBIO > 0
#include <dev/biovar.h>
-#include "bio.h"
+#endif
+
+/*#define AMI_DEBUG */
#ifdef AMI_DEBUG
#define AMI_DPRINTF(m,a) do { if (ami_debug & (m)) printf a; } while (0)