From 6df489c471eca80100bf720b4b5cde2cbd3b12d6 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 8 Dec 2003 13:40:26 -0500 Subject: ERR: We must define YY_NO_UNISTD_H to build on windows. --- Source/cmListFileLexer.c | 1 + Source/cmListFileLexer.l | 1 + 2 files changed, 2 insertions(+) diff --git a/Source/cmListFileLexer.c b/Source/cmListFileLexer.c index 8c7e066..9c4f4df 100644 --- a/Source/cmListFileLexer.c +++ b/Source/cmListFileLexer.c @@ -484,6 +484,7 @@ static yyconst flex_int32_t yy_rule_can_match_eol[15] = /* Disable features we do not need. */ #define YY_NEVER_INTERACTIVE 1 #define YY_NO_UNPUT 1 +#define YY_NO_UNISTD_H 1 #define ECHO /* Setup the proper yylex declaration. */ diff --git a/Source/cmListFileLexer.l b/Source/cmListFileLexer.l index 9f272e0..7878344 100644 --- a/Source/cmListFileLexer.l +++ b/Source/cmListFileLexer.l @@ -34,6 +34,7 @@ Modify cmListFileLexer.c: /* Disable features we do not need. */ #define YY_NEVER_INTERACTIVE 1 #define YY_NO_UNPUT 1 +#define YY_NO_UNISTD_H 1 #define ECHO /* Setup the proper yylex declaration. */ -- cgit v0.12