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

Build fails; need #include <unistd.h> #2

Open
GoogleCodeExporter opened this issue May 15, 2015 · 1 comment
Open

Build fails; need #include <unistd.h> #2

GoogleCodeExporter opened this issue May 15, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Compilation failed like this:

../srshcommon/consoleshell.cpp: In member function ‘bool 
ConsoleShell::isStdinTty()’:
../srshcommon/consoleshell.cpp:478:23: error: ‘STDIN_FILENO’ was not 
declared in this scope
../srshcommon/consoleshell.cpp:478:35: error: ‘isatty’ was not declared in 
this scope
../srshcommon/consoleshell.cpp:481:1: warning: control reaches end of non-void 
function [-Wreturn-type]
make[2]: *** [consoleshell.o] Error 1
make[2]: Leaving directory `/tmp/NewDir/scriptreport-0.2/tools/srsh'
make[1]: *** [sub-srsh-make_default] Error 2
make[1]: Leaving directory `/tmp/NewDir/scriptreport-0.2/tools'
make: *** [sub-tools-make_default] Error 2

It built fine after I added this to tools/srshcommon/consoleshell.cpp:
#include <unistd.h>

I saw somewhere that this occurs with gcc 4.7

Original issue reported on code.google.com by [email protected] on 26 Jul 2012 at 2:23

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

No branches or pull requests

1 participant