Kaydet (Commit) 2ae6f9d1 authored tarafından Caolán McNamara's avatar Caolán McNamara

RHEL-5 baseline ver of flex doesn't have nounistd

lets try this hack, if it fails revert and I'll just
manually update the baseline with a newer flex than
flex-2.5.4a-41.fc6

Change-Id: If644489e80fc4e4cdba97808af0fe4d544d08646
üst fd5a9f20
......@@ -60,6 +60,7 @@
#endif
/**/
#endif
#define YY_NO_UNISTD_H
using namespace connectivity;
......@@ -110,7 +111,6 @@ OSQLScanner* xxx_pGLOBAL_SQLSCAN = NULL;
%option noyywrap
%option never-interactive
%option nounistd
%%
ABS {SQL_NEW_KEYWORD(SQL_TOKEN_ABS); }
......
......@@ -257,11 +257,11 @@ static void parseLineAndFile(sal_Char* pBuf)
#endif
/**/
#endif
#define YY_NO_UNISTD_H
%}
%option noyywrap
%option never-interactive
%option nounistd
%x DOCU
%x COMMENT
......
......@@ -53,6 +53,7 @@
#elif defined _MSC_VER
#pragma warning(push, 1)
#endif
#define YY_NO_UNISTD_H
int yycolumn = 1;
#define YY_USER_ACTION yycolumn += yyleng;
......@@ -66,7 +67,6 @@ int bText=0;
%option yylineno
%option never-interactive
%option nounistd
%p 24000
%e 1200
......
......@@ -54,6 +54,7 @@
#elif defined _MSC_VER
#pragma warning(push, 1)
#endif
#define YY_NO_UNISTD_H
/* external functions (C++ code, declared as extern "C" */
extern "C" int WorkOnTokenSet( int, char* );
......@@ -68,7 +69,6 @@ void YYWarning();
%option yylineno
%option never-interactive
%option nounistd
%p 24000
%e 1200
......
......@@ -53,6 +53,7 @@
#elif defined _MSC_VER
#pragma warning(push, 1)
#endif
#define YY_NO_UNISTD_H
/* external functions (C++ code, declared as extern "C" */
extern "C" int WorkOnTokenSet( int, char* );
......@@ -74,7 +75,6 @@ int bText=0;
%option yylineno
%option never-interactive
%option nounistd
%p 24000
%e 1200
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment