seltzered / ccons

Automatically exported from code.google.com/p/ccons
MIT License
0 stars 0 forks source link

Require unistd.h for write(2) #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
gcc complains about write(2) being called in Console.cpp, but not declared. 
According to Fedora 19's man pages, write(2) is defined in unistd.h.

What steps will reproduce the problem?
1. ccmake .
2. make

What is the expected output? What do you see instead?

/usr/local/src/ccons/Console.cpp: In member function ‘bool 
ccons::Console::shouldPrintCString(const char*)’:
/usr/local/src/ccons/Console.cpp:243:30: error: ‘write’ was not declared in 
this scope
   int result = write(fd, p, 1);

What version of the product are you using? On what operating system?

SVN checkout r252
Fedora 19, gcc 4.8.1, glibc 2.17

Please provide any additional information below.

Original issue reported on code.google.com by postmode...@gmail.com on 14 Sep 2013 at 5:15

GoogleCodeExporter commented 9 years ago
Fixed in r253.

Original comment by Alexei.Svitkine@gmail.com on 14 Sep 2013 at 5:19