Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lex.yy.c missing unistd.h for isatty definition with flex 2.5.37 #443

Closed
etamme opened this issue Mar 30, 2015 · 1 comment · Fixed by #444
Closed

lex.yy.c missing unistd.h for isatty definition with flex 2.5.37 #443

etamme opened this issue Mar 30, 2015 · 1 comment · Fixed by #444

Comments

@etamme
Copy link

etamme commented Mar 30, 2015

lex.yy.c is generated without a include for unistd.h, which defines isatty.

Compiling lex.yy.c
lex.yy.c: In function ‘yy_init_buffer’:
lex.yy.c:4154:9: warning: implicit declaration of function ‘isatty’ [-Wimplicit-function-declaration]
         b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
         ^
@etamme
Copy link
Author

etamme commented Mar 30, 2015

I am on flex version 2.5.37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant