diff options
Diffstat (limited to 'sys/dev/snp')
-rw-r--r-- | sys/dev/snp/snp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c index a265dbc..c6d8c32 100644 --- a/sys/dev/snp/snp.c +++ b/sys/dev/snp/snp.c @@ -19,6 +19,7 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/systm.h> +#include <sys/fcntl.h> #include <sys/filio.h> #include <sys/malloc.h> #include <sys/tty.h> @@ -28,7 +29,7 @@ __FBSDID("$FreeBSD$"); #include <sys/module.h> #include <sys/queue.h> #include <sys/snoop.h> -#include <sys/vnode.h> +#include <sys/uio.h> static l_close_t snplclose; static l_write_t snplwrite; @@ -275,7 +276,7 @@ snpread(dev, uio, flag) do { if (snp->snp_len == 0) { - if (flag & IO_NDELAY) + if (flag & O_NONBLOCK) return (EWOULDBLOCK); snp->snp_flags |= SNOOP_RWAIT; error = tsleep(snp, (PZERO + 1) | PCATCH, |