------- Comment #3 from sje at cup dot hp dot com  2006-06-19 23:48 -------
There was nothing intentional about the different linkages, in unreleased HP-UX
sources, they fixed it to be in 'extern "C"' in both places.  Here is a patch
to inclhack.def that I have tested.  I haven't submitted it because I was
waiting for the MAINTAINERS change to happen.

fix = {
    hackname  = hpux11_extern_errno;
    mach      = "*-hp-hpux11.[0-2]*";
    files     = errno.h;
    select    = "^[ \t]*extern int errno;$";
    c_fix     = format;
    c_fix_arg = "#ifdef __cplusplus\nextern \"C\" {\n#endif\n%0\n#ifdef
__cplusplus\n}\n#endif";
    test_text = "   extern int errno;\n";
};


-- 

sje at cup dot hp dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sje at cup dot hp dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28084

Reply via email to