From fe8fab266b8c1095415fdcc2d8e4865ce533e2d9 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Wed, 22 Dec 2004 17:29:02 +0000 Subject: [PATCH] #include fcntl.h not vnode.h. Check O_NONBLOCK not IO_NDELAY. --- sys/dev/kbd/kbd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/kbd/kbd.c b/sys/dev/kbd/kbd.c index b7694c50d0a4..da6ee390fcc5 100644 --- a/sys/dev/kbd/kbd.c +++ b/sys/dev/kbd/kbd.c @@ -35,11 +35,11 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include #include -#include #include #include @@ -571,7 +571,7 @@ genkbdread(struct cdev *dev, struct uio *uio, int flag) return (ENXIO); } while (sc->gkb_q.c_cc == 0) { - if (flag & IO_NDELAY) { + if (flag & O_NONBLOCK) { splx(s); return (EWOULDBLOCK); }