--- qgssearchstringlexer.ll.orig 2010-06-16 15:13:52.058147264 +0300 +++ qgssearchstringlexer.ll 2010-06-16 15:16:57.122147758 +0300 @@ -19,6 +19,7 @@ %option noyywrap %option case-insensitive +%option never-interactive // ensure that lexer will be 8-bit (and not just 7-bit) %option 8bit @@ -34,6 +35,10 @@ // which doesn't in MSVC compiler #define YY_NEVER_INTERACTIVE 1 +#ifdef _MSC_VER +#define YY_NO_UNISTD_H +#endif + %} white [ \t\r\n]+