Revision 176335 (removal of #include <unistd.h> in thr-posix.h) cause numerous compile failures

Jonathan Wakely jwakely.gcc@gmail.com
Tue Aug 2 13:55:00 GMT 2011


On 2 August 2011 14:08, Markus Trippelsdorf wrote:
> Revisions 176335 removed the traditional "#include <unistd.h>" from
> gthr-posix.h. This breaks the build of many programs (Firefox, Chromium,
> etc.) that implicitly rely on it.
> I'm not sure that the gain is worth the pain in this case.

The "pain" fixes a real bug in libstdc++ which caused g++ to reject
valid programs.

Not rejecting valid programs is more important than accepting invalid
ones, especially ones that can be easily fixed by adding a missing
header.



More information about the Gcc mailing list