diff options
author | sje <sje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-06-23 16:21:54 +0000 |
---|---|---|
committer | sje <sje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-06-23 16:21:54 +0000 |
commit | 898b6c0fb2f63e69759c55ce9b4cc80150b0e316 (patch) | |
tree | a32443eb9a708c5f6e9710a643496ab1611efb1e /fixincludes/inclhack.def | |
parent | 150edb0704ca198f9f9f37ff133ab6210e2ff3ae (diff) | |
download | gcc-898b6c0fb2f63e69759c55ce9b4cc80150b0e316.tar.gz |
PR target/28084
* inclhack.def (hpux_extern_errno): New.
* fixincl.x: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114939 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r-- | fixincludes/inclhack.def | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index 5a5c42343b5..c4a689301b8 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -1716,6 +1716,17 @@ fix = { test_text = "extern union mpinfou spu_info[];"; }; +fix = { + hackname = hpux_extern_errno; + mach = "*-hp-hpux10.*"; + 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"; +}; + /* * Fix glibc definition of HUGE_VAL in terms of hex floating point constant |