Subject: Patch to fix devel/gettext build failure on IRIX/MIPSpro
To: None <tech-pkg@netbsd.org>
From: Stuart Shelton <stuart@zeus.com>
List: tech-pkg
Date: 09/02/2005 18:19:16
--- po-lex.h.orig 2005-09-02 18:09:00.896170600 +0100
+++ po-lex.h 2005-09-02 18:09:30.202155640 +0100
@@ -71,7 +71,7 @@ extern void po_lex_pass_obsolete_entries


  /* ISO C 99 is smart enough to allow optimizations like this.  */
-#if __STDC__ && (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) 
+#if __STDC__ && (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) && !(defined __sgi && defined _COMPILER_VERSION)

  /* CAUTION: If you change this macro, you must also make identical
     changes to the function of the same name in src/po-lex.c */
--- po-lex.c.orig 2005-09-02 18:08:55.685605160 +0100
+++ po-lex.c 2005-09-02 18:09:29.551176040 +0100
@@ -76,7 +76,8 @@ int gram_pos_column;
     These functions can access gram_pos and gram_pos_column.  */

  #if !(__STDC__ && \
-      ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) \
+      ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) && \
+       !(defined __sgi && defined _COMPILER_VERSION) \
         || (defined __GNUC__ && __GNUC__ >= 2 && !defined __APPLE_CC__)))

  /* CAUTION: If you change this function, you must also make identical