freebsd-ports/x11/xdtm/files/patch-lexical.l
Martin Wilke 617281488c - Fix build on -current
- Add MAKE_JOBS_UNSAFE
- Trim header

PR:		179578
Submitted by:	ports fury
2013-06-17 14:58:48 +00:00

21 lines
601 B
C

--- 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
%}
%%