[Bug target/16300] Bug in vendor /usr/include/net/if.h needs fixincluding

bkorb at veritas dot com gcc-bugzilla@gcc.gnu.org
Mon Oct 18 16:06:00 GMT 2004


------- 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



More information about the Java-prs mailing list