diff options
author | Bill Meier <wmeier@newsguy.com> | 2008-04-25 17:40:29 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2008-04-25 17:40:29 +0000 |
commit | 0d4b874b44dd082eaa61b5b403069d0e3cd38453 (patch) | |
tree | c78189b236a540b92d55b797c7ec1bf798db3f76 /text2pcap-scanner.l | |
parent | ff523807655f111ba5ae1f84a030ee8a147c3997 (diff) | |
download | wireshark-0d4b874b44dd082eaa61b5b403069d0e3cd38453.tar.gz wireshark-0d4b874b44dd082eaa61b5b403069d0e3cd38453.tar.bz2 wireshark-0d4b874b44dd082eaa61b5b403069d0e3cd38453.zip |
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
Diffstat (limited to 'text2pcap-scanner.l')
-rw-r--r-- | text2pcap-scanner.l | 9 |
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] |