diff options
author | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2017-11-27 10:40:44 +0100 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2017-11-30 20:24:39 +0000 |
commit | 0f1b8fd2dcd2db698095a54ca9beff7e27cf1ceb (patch) | |
tree | 331ead877ad49b5384e6cbfc3b6ef8f8d90033e5 | |
parent | d80fde62ed82493322463d2057a07b6b2ed81a83 (diff) | |
download | qtbase-0f1b8fd2dcd2db698095a54ca9beff7e27cf1ceb.tar.gz |
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 <thiago.macieira@intel.com>
-rw-r--r-- | src/tools/qlalr/examples/qparser/calc.l | 3 |
1 files changed, 3 insertions, 0 deletions
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 <cstdlib> +// Work around flex bug +#include <unistd.h> + #define YY_DECL int CalcParser::nextToken() %} |