diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2010-05-21 20:52:39 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2010-05-21 20:52:39 +0000 |
commit | 6e62b4e71cb85c9f04f788db70f1eca5efdcd227 (patch) | |
tree | c6e6434e6a2aa33ee9f6ee72de8a87571e1f8263 | |
parent | a3898422a763f7fc7b9e481b45efe787e513775f (diff) |
Make compile with NBIO = 0
-rw-r--r-- | sys/dev/softraid.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index c56301894a8..94b2f427d14 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.203 2010/05/20 00:55:17 krw Exp $ */ +/* $OpenBSD: softraid.c,v 1.204 2010/05/21 20:52:38 marco Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org> @@ -1549,10 +1549,12 @@ sr_attach(struct device *parent, struct device *self, void *aux) SLIST_INIT(&sr_hotplug_callbacks); SLIST_INIT(&sc->sc_hotspare_list); +#if NBIO > 0 if (bio_register(&sc->sc_dev, sr_ioctl) != 0) printf("%s: controller registration failed", DEVNAME(sc)); else sc->sc_ioctl = sr_ioctl; +#endif /* NBIO > 0 */ printf("\n"); |