Make sys/net/bpf_filter.c build cleanly on user land.

This commit is contained in:
Jung-uk Kim 2008-08-26 00:09:26 +00:00
parent 143a24dad7
commit 32688992ef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182184
2 changed files with 5 additions and 2 deletions

View File

@ -849,7 +849,6 @@ void bpfattach2(struct ifnet *, u_int, u_int, struct bpf_if **);
void bpfdetach(struct ifnet *);
void bpfilterattach(int);
u_int bpf_filter(const struct bpf_insn *, u_char *, u_int, u_int);
static __inline int
bpf_peers_present(struct bpf_if *bpf)
@ -878,6 +877,8 @@ bpf_peers_present(struct bpf_if *bpf)
} while (0)
#endif
u_int bpf_filter(const struct bpf_insn *, u_char *, u_int, u_int);
/*
* Number of scratch memory words (for BPF_LD|BPF_MEM and BPF_ST).
*/

View File

@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$");
#include <sys/param.h>
#ifdef sun
#if !defined(_KERNEL) || defined(sun)
#include <netinet/in.h>
#endif
@ -64,6 +64,8 @@ __FBSDID("$FreeBSD$");
#ifdef _KERNEL
#include <sys/mbuf.h>
#else
#include <stdlib.h>
#endif
#include <net/bpf.h>
#ifdef _KERNEL