From 76e8599a690717883277c21a199e99e5b51f76bd Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 22 Dec 2004 17:32:53 +0000 Subject: Check O_NONBLOCK instead of IO_NDELAY. Don't include --- sys/net/ppp_tty.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/net/ppp_tty.c') 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 #include #include -#include #ifdef PPP_FILTER #include @@ -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); } -- cgit v1.1