diff options
Diffstat (limited to 'x11/xdtm/files/patch-lexical.l')
-rw-r--r-- | x11/xdtm/files/patch-lexical.l | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/x11/xdtm/files/patch-lexical.l b/x11/xdtm/files/patch-lexical.l new file mode 100644 index 000000000000..53bb2d3be358 --- /dev/null +++ b/x11/xdtm/files/patch-lexical.l @@ -0,0 +1,21 @@ +--- lexical.l.orig ++++ lexical.l +@@ -1,3 +1,4 @@ ++%option yylineno + %{ /*-*- Mode: C -*-*/ + /************************************************************************** + ** File : lexical.l ** +@@ -171,13 +172,6 @@ static int numkeywords = (sizeof(keywordtable)/sizeof( + + int parseerror=0; /* Number of parse errors */ + char errormessage[255]; /* used for error messsages */ +- +-/* +- * ``yylineno'' not POSIX standard, so have to simulate it when using flex. +- */ +-#ifdef FLEX_SCANNER +-int yylineno=0; +-#endif + + %} + %% |