This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/28084] [4.2 Regression] /usr/include/errno.h:28: error: previous declaration of 'int errno' with 'C++' linkage
- From: "dave at hiauly1 dot hia dot nrc dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jun 2006 00:07:02 -0000
- Subject: [Bug target/28084] [4.2 Regression] /usr/include/errno.h:28: error: previous declaration of 'int errno' with 'C++' linkage
- References: <bug-28084-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from dave at hiauly1 dot hia dot nrc dot ca 2006-06-20 00:07 -------
Subject: Re: [4.2 Regression] /usr/include/errno.h:28: error: previous
declaration of 'int errno' with 'C++' linkage
> mach = "*-hp-hpux11.[0-2]*";
I believe that we also need the fix for hpux10. I see
extern int errno;
#include <sys/errno.h>
in the HP-UX 10.20 version of errno.h with no extern "C" wrapper.
sys/errno.h has the wrapper. Otherwise, the change looks good to
me.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28084