Commit e23f9a1
committed
fix(Data/SQLParser): restore Windows unistd guard in flex_lexer.h #5377
The bison/flex regen in 01f7ec2 overwrote a POCO-local hand-patch
in the generated flex_lexer.h that wrapped the unistd.h include in a
Windows guard. MSVC has no unistd.h, so clang-cl Windows builds
fail with:
flex_lexer.h(470): fatal error: 'unistd.h' file not found
Re-apply the same conditional, with a POCO-LOCAL comment so the next
person who regens the lexer knows it has to be re-applied. flex's
%option set in flex_lexer.l has no equivalent for this - nounistd
would drop the include on every platform but flex's emitted runtime
calls (read/write/close/isatty) need either unistd.h or io.h, so the
conditional has to live in the generated header.1 parent 13ebc04 commit e23f9a1
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
470 | 478 | | |
471 | 479 | | |
| 480 | + | |
472 | 481 | | |
473 | 482 | | |
474 | 483 | | |
| |||
0 commit comments