Check O_NONBLOCK instead of IO_NDELAY.

Don't include <sys/vnode.h>
This commit is contained in:
phk 2004-12-22 17:32:53 +00:00
parent 55f52615a8
commit 76e8599a69

View File

@ -85,7 +85,6 @@
#include <sys/tty.h> #include <sys/tty.h>
#include <sys/conf.h> #include <sys/conf.h>
#include <sys/uio.h> #include <sys/uio.h>
#include <sys/vnode.h>
#ifdef PPP_FILTER #ifdef PPP_FILTER
#include <net/bpf.h> #include <net/bpf.h>
@ -332,7 +331,7 @@ pppread(tp, uio, flag)
splx(s); splx(s);
return 0; /* end of file */ return 0; /* end of file */
} }
if (tp->t_state & TS_ASYNC || flag & IO_NDELAY) { if (tp->t_state & TS_ASYNC || flag & O_NONBLOCK) {
splx(s); splx(s);
return (EWOULDBLOCK); return (EWOULDBLOCK);
} }