This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Further HPUX 11.00 include file woes
- To: Richard Begg <Richard dot Begg at colesmyer dot com dot au>
- Subject: Re: Further HPUX 11.00 include file woes
- From: Bruce Korb <bkorb at pacbell dot net>
- Date: Mon, 16 Jul 2001 19:02:15 -0700
- Cc: bkorb at pacbell dot net, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Organization: Home
- References: <47D53944C263D511AD000002A56008980863CA@MARINER.colesmyer.com.au>
Richard Begg wrote:
>
> Bruce,
>
> It looks like the definition in stdio.h for vsnprintf is also broken...
> attached is my proposed fix...
Looks good to me. Well, the _fix_ looks good. ;-)
2001-07-16 Richard Begg <Richard.Begg@colesmyer.com.au>
* fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
Index: inclhack.def
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fixinc/inclhack.def,v
retrieving revision 1.113
diff -c -r1.113 inclhack.def
*** inclhack.def 2001/06/28 03:12:56 1.113
--- inclhack.def 2001/07/16 07:04:35
***************
*** 1296,1301 ****
--- 1296,1316 ----
/*
+ * Fix hpux 11.00 broken vsnprintf declaration
+ */
+ fix = {
+ hackname = hpux_vsnprintf;
+ files = stdio.h;
+ select = 'extern int vsnprintf\(char \*, __size_t, const char \*, __va__list\);';
+
+ c_fix = format;
+ c_fix_arg = "extern int vsnprintf(char *, __size_t, const char *, __va_list);";
+
+ test_text = 'extern int vsnprintf(char *, __size_t, const char *, __va__list);';
+ };
+
+
+ /*
* Fix return type of abort and free
*/
fix = {