summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-12-22 17:37:57 +0000
committerphk <phk@FreeBSD.org>2004-12-22 17:37:57 +0000
commit0970167e88bca4cf2d55e9a9a4fd6d566e8e084b (patch)
tree04444125c494d559b0b9b7fff31dca72bea284f0 /sys/net
parentfbe7293f5ae054b20e8c917b015740ed4103c78c (diff)
downloadFreeBSD-src-0970167e88bca4cf2d55e9a9a4fd6d566e8e084b.zip
FreeBSD-src-0970167e88bca4cf2d55e9a9a4fd6d566e8e084b.tar.gz
Include fcntl.h
Check O_NONBLOCK instead of IO_NDELAY Include uio.h Don't include vnode.h Don't include filedesc.h
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/bpf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 5f313c0..a934adf 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -44,6 +44,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/conf.h>
+#include <sys/fcntl.h>
#include <sys/mac.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
@@ -53,7 +54,7 @@
#include <sys/filio.h>
#include <sys/sockio.h>
#include <sys/ttycom.h>
-#include <sys/filedesc.h>
+#include <sys/uio.h>
#include <sys/event.h>
#include <sys/file.h>
@@ -61,7 +62,6 @@
#include <sys/proc.h>
#include <sys/socket.h>
-#include <sys/vnode.h>
#include <net/if.h>
#include <net/bpf.h>
@@ -458,7 +458,7 @@ bpfread(dev, uio, ioflag)
return (ENXIO);
}
- if (ioflag & IO_NDELAY) {
+ if (ioflag & O_NONBLOCK) {
BPFD_UNLOCK(d);
return (EWOULDBLOCK);
}
OpenPOWER on IntegriCloud