diff options
author | phk <phk@FreeBSD.org> | 2004-12-22 17:32:53 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-12-22 17:32:53 +0000 |
commit | 76e8599a690717883277c21a199e99e5b51f76bd (patch) | |
tree | de4e2e20da81c75889f08d363d1ec43166338acf /sys | |
parent | 55f52615a89c7c8c30899d64ead8269d37eb6709 (diff) | |
download | FreeBSD-src-76e8599a690717883277c21a199e99e5b51f76bd.zip FreeBSD-src-76e8599a690717883277c21a199e99e5b51f76bd.tar.gz |
Check O_NONBLOCK instead of IO_NDELAY.
Don't include <sys/vnode.h>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/ppp_tty.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/ppp_tty.c b/sys/net/ppp_tty.c index ed04fe7..d220acd 100644 --- a/sys/net/ppp_tty.c +++ b/sys/net/ppp_tty.c @@ -85,7 +85,6 @@ #include <sys/tty.h> #include <sys/conf.h> #include <sys/uio.h> -#include <sys/vnode.h> #ifdef PPP_FILTER #include <net/bpf.h> @@ -332,7 +331,7 @@ pppread(tp, uio, flag) splx(s); 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); return (EWOULDBLOCK); } |