aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-01-27 00:56:18 -0800
committerGuy Harris <guy@alum.mit.edu>2010-01-27 00:56:18 -0800
commit1f436f90eb4032510db29002f4a7a7d652065037 (patch)
treea121491fc6891cc941eea909629e6cf74dc44808
parentc69ec3857b9b0995d620244ee7a7ee8b25789639 (diff)
Include headers that should cause u_int64_t to be defined.
-rw-r--r--scanner.l14
1 files changed, 14 insertions, 0 deletions
diff --git a/scanner.l b/scanner.l
index 4a6fdb1..9b3e139 100644
--- a/scanner.l
+++ b/scanner.l
@@ -29,6 +29,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 <ctype.h>
#include <string.h>