summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-12-22 17:34:53 +0000
committerphk <phk@FreeBSD.org>2004-12-22 17:34:53 +0000
commit1273b3575c3eca6e66b6b765a814ea8cded4307c (patch)
tree51f4ab0ef4e03dbe45d332c70b04f77d415dd10e /sys/dev/usb
parent52fb0f35d091f22fba1e0fa216fbb8cd0cdc84f9 (diff)
downloadFreeBSD-src-1273b3575c3eca6e66b6b765a814ea8cded4307c.zip
FreeBSD-src-1273b3575c3eca6e66b6b765a814ea8cded4307c.tar.gz
Include fcntl.h
check O_NONBLOCK instead of IO_NDELAY don't include vnode.h
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/ums.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c
index c78c422..98f7543 100644
--- a/sys/dev/usb/ums.c
+++ b/sys/dev/usb/ums.c
@@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$");
#include <sys/bus.h>
#include <sys/ioccom.h>
#include <sys/conf.h>
+#include <sys/fcntl.h>
#include <sys/tty.h>
#include <sys/file.h>
#if __FreeBSD_version >= 500014
@@ -61,7 +62,6 @@ __FBSDID("$FreeBSD$");
#include <sys/poll.h>
#include <sys/sysctl.h>
#include <sys/uio.h>
-#include <sys/vnode.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbhid.h>
@@ -673,7 +673,7 @@ ums_read(struct cdev *dev, struct uio *uio, int flag)
}
while (sc->qcount == 0 ) {
- if (flag & IO_NDELAY) { /* non-blocking I/O */
+ if (flag & O_NONBLOCK) { /* non-blocking I/O */
splx(s);
return EWOULDBLOCK;
}
OpenPOWER on IntegriCloud