diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2009-03-17 07:49:00 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2009-03-17 07:49:00 +0000 |
commit | ed5516e2eadf1633b622c7dd0d6d929ca00f55c6 (patch) | |
tree | 1208d41a6a8f4406b934f4678ba49717ecd31076 /sys/dev/pci/ips.c | |
parent | e78035828fe788b543e394d4e5f529f351fd0a11 (diff) |
Fix compilation without bio(4).
Diffstat (limited to 'sys/dev/pci/ips.c')
-rw-r--r-- | sys/dev/pci/ips.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/ips.c b/sys/dev/pci/ips.c index 6a85a41ae38..43ca31837a2 100644 --- a/sys/dev/pci/ips.c +++ b/sys/dev/pci/ips.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ips.c,v 1.70 2009/03/16 21:46:00 grange Exp $ */ +/* $OpenBSD: ips.c,v 1.71 2009/03/17 07:48:59 grange Exp $ */ /* * Copyright (c) 2006, 2007, 2009 Alexander Yurchenko <grange@openbsd.org> @@ -1091,7 +1091,11 @@ int ips_scsi_ioctl(struct scsi_link *link, u_long cmd, caddr_t addr, int flag, struct proc *p) { +#if NBIO > 0 return (ips_ioctl(link->adapter_softc, cmd, addr)); +#else + return (ENOTTY); +#endif } #if NBIO > 0 |