From 0f1b8fd2dcd2db698095a54ca9beff7e27cf1ceb Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 27 Nov 2017 10:40:44 +0100 Subject: [PATCH] work around flex bug flex emits code using isatty(), but fails to include the required unistd.h. we can work around it by including the header ourselves. Task-number: QTBUG-64771 Change-Id: I05313eeb79f7a0e25365dee5f05a0142f87209ae Reviewed-by: Thiago Macieira --- src/tools/qlalr/examples/qparser/calc.l | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools/qlalr/examples/qparser/calc.l b/src/tools/qlalr/examples/qparser/calc.l index e619e34dab..fe542680a8 100644 --- a/src/tools/qlalr/examples/qparser/calc.l +++ b/src/tools/qlalr/examples/qparser/calc.l @@ -33,6 +33,9 @@ #include "calc_parser.h" #include +// Work around flex bug +#include + #define YY_DECL int CalcParser::nextToken() %}