diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-06-30 13:50:00 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-06-30 13:50:00 -0700 |
commit | 165958f5b6e324ca535c4c9af34793282beeacee (patch) | |
tree | b064b05d9bd878f10b1033c5023ea6bb5b13b659 /scanner.l | |
parent | 0087d580957f574a7c7fd78f9f21db27496a6480 (diff) | |
download | libpcap-165958f5b6e324ca535c4c9af34793282beeacee.tar.gz |
CMake might define YY_NO_UNISTD_H on Windows; suppress a warning.
Diffstat (limited to 'scanner.l')
-rw-r--r-- | scanner.l | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -65,9 +65,12 @@ #ifdef _WIN32 /* - * Suppress the #include of unistd.h; Windows doesn't have it. + * Make sure we suppress the #include of unistd.h; Windows doesn't have + * unistd.h. */ - #define YY_NO_UNISTD_H + #ifndef YY_NO_UNISTD_H + #define YY_NO_UNISTD_H + #endif #include <pcap-stdinc.h> #else |