aboutsummaryrefslogtreecommitdiff
path: root/bpf/net/bpf_filter.c
diff options
context:
space:
mode:
authorRui Paulo <rpaulo@FreeBSD.org>2010-10-28 16:22:13 +0000
committerRui Paulo <rpaulo@FreeBSD.org>2010-10-28 16:22:13 +0000
commite89167f07a9ca239491071320fd6d010e183107e (patch)
treea1654f0d5a28352ec1204b8585177e6d0a26cae4 /bpf/net/bpf_filter.c
parentc6a6c5e28b1033c61a7bb7e108fa0592b22cc016 (diff)
downloadsrc-e89167f07a9ca239491071320fd6d010e183107e.tar.gz
src-e89167f07a9ca239491071320fd6d010e183107e.zip
Notes
Diffstat (limited to 'bpf/net/bpf_filter.c')
-rw-r--r--bpf/net/bpf_filter.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/bpf/net/bpf_filter.c b/bpf/net/bpf_filter.c
index a2733d1b1b2e..a51ed78756d4 100644
--- a/bpf/net/bpf_filter.c
+++ b/bpf/net/bpf_filter.c
@@ -40,7 +40,7 @@
#if !(defined(lint) || defined(KERNEL) || defined(_KERNEL))
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/libpcap/bpf/net/bpf_filter.c,v 1.45.2.1 2008/01/02 04:22:16 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/bpf/net/bpf_filter.c,v 1.46 2008-01-02 04:16:46 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -53,6 +53,15 @@ static const char rcsid[] _U_ =
#else /* WIN32 */
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
+#elif HAVE_STDINT_H
+#include <stdint.h>
+#endif
+#ifdef HAVE_SYS_BITYPES_H
+#include <sys/bitypes.h>
+#endif
+
#include <sys/param.h>
#include <sys/types.h>
#include <sys/time.h>
@@ -65,9 +74,9 @@ static const char rcsid[] _U_ =
# define m_next b_cont
# define MLEN(m) ((m)->b_wptr - (m)->b_rptr)
# define mtod(m,t) ((t)(m)->b_rptr)
-#else
+#else /* defined(__hpux) || SOLARIS */
# define MLEN(m) ((m)->m_len)
-#endif
+#endif /* defined(__hpux) || SOLARIS */
#endif /* WIN32 */