summaryrefslogtreecommitdiff
path: root/innobase/pars/lexyy.c
diff options
context:
space:
mode:
Diffstat (limited to 'innobase/pars/lexyy.c')
-rw-r--r--innobase/pars/lexyy.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/innobase/pars/lexyy.c b/innobase/pars/lexyy.c
index 81adf909d01..71507ccd868 100644
--- a/innobase/pars/lexyy.c
+++ b/innobase/pars/lexyy.c
@@ -4,12 +4,11 @@
* $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
*/
-#include "univ.i"
-
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
+#include "univ.i"
#include <stdio.h>
@@ -608,11 +607,8 @@ How to make the InnoDB parser and lexer C files:
6. Remove the #include of unistd.h from about line 2500 of lexyy.c
-7. Move #include <math.h> in pars0grm.c after #include "univ.i" to remove
- a large file compilation error on AIX.
-
-8. Move #include "univ.i" in lexyy.c to the file start to remove a large
- file compilation error on AIX.
+7. Add '#include "univ.i"' before #include <stdio.h> in lexyy.c
+ (Needed for AIX)
These instructions seem to work at least with bison-1.28 and flex-2.5.4 on
Linux.
@@ -620,6 +616,7 @@ Linux.
#line 36 "pars0lex.l"
#define YYSTYPE que_node_t*
+#include "univ.i"
#include "pars0pars.h"
#include "pars0grm.h"
#include "pars0sym.h"