aboutsummaryrefslogtreecommitdiff
path: root/scanner.l
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-06-30 13:50:00 -0700
committerGuy Harris <guy@alum.mit.edu>2016-06-30 13:50:00 -0700
commit165958f5b6e324ca535c4c9af34793282beeacee (patch)
treeb064b05d9bd878f10b1033c5023ea6bb5b13b659 /scanner.l
parent0087d580957f574a7c7fd78f9f21db27496a6480 (diff)
downloadlibpcap-165958f5b6e324ca535c4c9af34793282beeacee.tar.gz
CMake might define YY_NO_UNISTD_H on Windows; suppress a warning.
Diffstat (limited to 'scanner.l')
-rw-r--r--scanner.l7
1 files changed, 5 insertions, 2 deletions
diff --git a/scanner.l b/scanner.l
index 9c6317ec..bb05f645 100644
--- a/scanner.l
+++ b/scanner.l
@@ -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