This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/16300] Bug in vendor /usr/include/net/if.h needs fixincluding
- From: "bkorb at veritas dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Oct 2004 16:06:11 -0000
- Subject: [Bug target/16300] Bug in vendor /usr/include/net/if.h needs fixincluding
- References: <20040630163127.16300.skunk@iskunk.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bkorb at veritas dot com 2004-10-18 16:06 -------
Subject: Re: Bug in vendor /usr/include/net/if.h needs
fixincluding
skunk at iskunk dot org wrote:
>
> ------- Additional Comments From skunk at iskunk dot org 2004-10-18 15:16 -------
> The build still fails ...
/*
+ * Fix missing semicolon on Alpha OSF/4 in <net/if.h>
+ */
+ fix = {
+ hackname = alpha_if_semicolon;
+ files = "if.h";
+ select = "(struct[ \t]+sockaddr[ \t]+vmif_paddr)([ \t])([ \t]+/\*)";
+ c_fix = format;
+ c_fix_arg = "%1;%2%3";
+ test_text = ' struct sockaddr vmif_paddr /* protocol address */';
+ };
+
+
+ /*
* Remove erroneous parentheses in sym.h on Alpha OSF/1.
*/
fix = {
The select clause requires two white space characters
between "vmif_paddr" and "/*". Eliminate the unnecessary
subexpression stuff, thus:
/*
+ * Fix missing semicolon on Alpha OSF/4 in <net/if.h>
+ */
+ fix = {
+ hackname = alpha_if_semicolon;
+ files = "if.h";
+ select = "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\*";
+ c_fix = format;
+ c_fix_arg = "struct sockaddr vmif_paddr;\t/*";
+ test_text = ' struct sockaddr vmif_paddr /* protocol address */';
+ };
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16300