diff options
author | phk <phk@FreeBSD.org> | 2004-12-22 17:34:53 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-12-22 17:34:53 +0000 |
commit | 1273b3575c3eca6e66b6b765a814ea8cded4307c (patch) | |
tree | 51f4ab0ef4e03dbe45d332c70b04f77d415dd10e /sys/dev/usb/ums.c | |
parent | 52fb0f35d091f22fba1e0fa216fbb8cd0cdc84f9 (diff) | |
download | FreeBSD-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/ums.c')
-rw-r--r-- | sys/dev/usb/ums.c | 4 |
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; } |