From 0d4b874b44dd082eaa61b5b403069d0e3cd38453 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Fri, 25 Apr 2008 17:40:29 +0000 Subject: Bug 2493: Fix (Part 2): To prevent Windows compiler errors when using flex 2.5.35. Fixes "missing unistd.h" and yywrap "mismatched parameter" warnings [Upcoming Part 3: ignore 'signed /unsigned mismatch' errors] svn path=/trunk/; revision=25173 --- text2pcap-scanner.l | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'text2pcap-scanner.l') 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 #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] -- cgit v1.2.1