aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-01-27 00:46:43 -0800
committerGuy Harris <guy@alum.mit.edu>2010-01-27 00:46:43 -0800
commitc69ec3857b9b0995d620244ee7a7ee8b25789639 (patch)
treea17d04e6a8b1d3ae48f8ac51ffac7d1ba719dcff
parent88285f982b72cf1aa6e479014b91a7408ca0637f (diff)
Include headers that should cause u_int64_t to be defined.
-rw-r--r--bpf_image.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/bpf_image.c b/bpf_image.c
index 2cf581a..e2f1a77 100644
--- a/bpf_image.c
+++ b/bpf_image.c
@@ -28,6 +28,20 @@ static const char rcsid[] _U_ =
#include "config.h"
#endif
+#ifdef WIN32
+#include <pcap-stdinc.h>
+#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/types.h>
+#endif /* WIN32 */
+
#include <stdio.h>
#include <string.h>