http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50423
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-09-15
18:01:34 UTC ---
This is expected you are not including unistd.h in your source which is
required if you want to use getpid. It was a bug before GCC 4.7 that some of
the C++ headers included that header file.