From e22b0e768226f2a847719cca894f7ad970d9d566 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Wed, 22 Dec 2004 17:34:25 +0000 Subject: [PATCH] Include fcntl.h Check O_NONBLOCK instead of IO_NDELAY Don't include vnode.h --- sys/dev/usb/uhid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c index 7fe67565cd0b..705fd9b68423 100644 --- a/sys/dev/usb/uhid.c +++ b/sys/dev/usb/uhid.c @@ -57,6 +57,7 @@ __FBSDID("$FreeBSD$"); #include #endif #include +#include #if defined(__NetBSD__) || defined(__OpenBSD__) #include #include @@ -79,7 +80,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include @@ -491,7 +491,7 @@ uhid_do_read(struct uhid_softc *sc, struct uio *uio, int flag) s = splusb(); while (sc->sc_q.c_cc == 0) { - if (flag & IO_NDELAY) { + if (flag & O_NONBLOCK) { splx(s); return (EWOULDBLOCK); }