diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-01-27 00:04:36 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-01-27 00:04:36 -0800 |
commit | 88285f982b72cf1aa6e479014b91a7408ca0637f (patch) | |
tree | 68adf1c8fc5ee666d9aaeb3616cfc47d141803ca | |
parent | a52a49b5822ce86c281154bc6c05014587dbb159 (diff) |
Include headers that should cause u_int64_t to be defined.
-rw-r--r-- | bpf/net/bpf_filter.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/bpf/net/bpf_filter.c b/bpf/net/bpf_filter.c index ce100e1..a51ed78 100644 --- a/bpf/net/bpf_filter.c +++ b/bpf/net/bpf_filter.c @@ -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 */ |