summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-12-22 17:35:52 +0000
committerphk <phk@FreeBSD.org>2004-12-22 17:35:52 +0000
commit8deec74094d9f16f06160c6ded2adc92a583dee9 (patch)
tree8bd7e5b4cd7fc05ebc0dc878de8f1c3e7b3c9be8 /sys/dev/usb
parent1273b3575c3eca6e66b6b765a814ea8cded4307c (diff)
downloadFreeBSD-src-8deec74094d9f16f06160c6ded2adc92a583dee9.zip
FreeBSD-src-8deec74094d9f16f06160c6ded2adc92a583dee9.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/usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c
index eb8b80a..640ac72 100644
--- a/sys/dev/usb/usb.c
+++ b/sys/dev/usb/usb.c
@@ -67,6 +67,7 @@ __FBSDID("$FreeBSD$");
#include <sys/unistd.h>
#include <sys/module.h>
#include <sys/bus.h>
+#include <sys/fcntl.h>
#include <sys/filio.h>
#include <sys/uio.h>
#endif
@@ -82,7 +83,6 @@ __FBSDID("$FreeBSD$");
#include <sys/signalvar.h>
#include <sys/sysctl.h>
#include <sys/uio.h>
-#include <sys/vnode.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbdi.h>
@@ -528,7 +528,7 @@ usbread(struct cdev *dev, struct uio *uio, int flag)
n = usb_get_next_event(&ue);
if (n != 0)
break;
- if (flag & IO_NDELAY) {
+ if (flag & O_NONBLOCK) {
error = EWOULDBLOCK;
break;
}
OpenPOWER on IntegriCloud