diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-12-22 17:30:38 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-12-22 17:30:38 +0000 |
| commit | 1ef0fc1d09d73375f7aad5592bfd922fe724928b (patch) | |
| tree | ba18b225f70a8438ac3c99f5c2c35e05205af561 /sys/dev/snp | |
| parent | 4c4a94cefeed0bc69827ae4d43f07ff375f7537b (diff) | |
Notes
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 a265dbcf11ed..c6d8c32eeae0 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, |
