summaryrefslogtreecommitdiff
path: root/src/lex.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/lex.l')
-rw-r--r--src/lex.l5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lex.l b/src/lex.l
index d07a085..2d6ef0c 100644
--- a/src/lex.l
+++ b/src/lex.l
@@ -66,12 +66,13 @@ in this Software without prior written authorization from The Open Group.
/* #include <stdio.h> */ /* lex already includes stdio.h */
#include "twm.h"
-#include "gram.h"
#include "list.h"
#include "parse.h"
#ifdef FLEX_SCANNER
+#if (YY_FLEX_MINOR_VERSION == 5) && (YY_FLEX_SUBMINOR_VERSION < 20)
int yylineno;
+#endif
#undef YY_INPUT
#define YY_INPUT(buf,result,size) ((result) = doinput((buf),(size)))
@@ -139,7 +140,7 @@ number [0-9]+
#ifndef yywrap
int
-yywrap()
+yywrap(void)
{
return (1);
}