aboutsummaryrefslogtreecommitdiffstats
path: root/text2pcap-scanner.l
diff options
context:
space:
mode:
Diffstat (limited to 'text2pcap-scanner.l')
-rw-r--r--text2pcap-scanner.l9
1 files changed, 8 insertions, 1 deletions
diff --git a/text2pcap-scanner.l b/text2pcap-scanner.l
index 6b0b716f45..90efadf4cf 100644
--- a/text2pcap-scanner.l
+++ b/text2pcap-scanner.l
@@ -41,7 +41,14 @@
#include <stdlib.h>
#include "text2pcap.h"
-
+
+/*
+ * Flex (v 2.5.35) uses this symbol to "exclude" unistd.h
+ */
+#ifdef _WIN32
+#define YY_NO_UNISTD_H
+#endif
+
%}
hexdigit [0-9A-Fa-f]