]> The Tcpdump Group git mirrors - libpcap/commitdiff
Don't bother with YY_NO_UNISTD_H.
authorGuy Harris <[email protected]>
Thu, 30 Jun 2016 20:56:22 +0000 (13:56 -0700)
committerGuy Harris <[email protected]>
Thu, 30 Jun 2016 20:56:22 +0000 (13:56 -0700)
That doesn't fix the problem with scanner.h, and CMake already generates
MSVC project files that define it, so it's not necessary with CMake.
Other build processes should arrange either that it be defined or that
the code protected by it doesn't get generated.

scanner.l

index bb05f645e600a8a3e27577e046f595b2bf5e444d..1000b7a3c903e588a76c76205083285e3edb2e5c 100644 (file)
--- a/scanner.l
+++ b/scanner.l
  */
 
 #ifdef _WIN32
-  /*
-   * Make sure we suppress the #include of unistd.h; Windows doesn't have
-   * unistd.h.
-   */
-  #ifndef YY_NO_UNISTD_H
-    #define YY_NO_UNISTD_H
-  #endif
-
   #include <pcap-stdinc.h>
 #else
   #if HAVE_INTTYPES_H