add patches regarding PR pkg/30940 to allow IRIX MIPSPro compilers,

when passed certain CFLAGS, to not barf.
This commit is contained in:
jschauma 2006-02-21 04:12:44 +00:00
parent 2b180828a0
commit 352d5935d3
3 changed files with 30 additions and 1 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.15 2006/02/14 22:31:42 joerg Exp $
$NetBSD: distinfo,v 1.16 2006/02/21 04:12:44 jschauma Exp $
SHA1 (gettext-0.14.5.tar.gz) = 68737eee1a6427044eef901dc88e4144d371fb6b
RMD160 (gettext-0.14.5.tar.gz) = d31c8e49671f00623ce1e6f73716a5abcd1c7ec2
@ -14,3 +14,5 @@ SHA1 (patch-ak) = 3f2aa72291aae5e024a3bb833b46973221be3b95
SHA1 (patch-al) = 2ed0cbf8e2e9a03ac3f8aaff447a07f578010472
SHA1 (patch-an) = f99f345f9b23f72e4a462445bcce8281dd1e5308
SHA1 (patch-ao) = 9e81b05b6e1ee76197c360a441264588607a475c
SHA1 (patch-ap) = 01eefa6de4fde2057bb458aaa298d5b9448830c1
SHA1 (patch-aq) = b1a44404150f8938ccb47154feee1c68ed5ff084

View file

@ -0,0 +1,13 @@
$NetBSD: patch-ap,v 1.3 2006/02/21 04:12:44 jschauma Exp $
--- src/po-lex.c.orig Mon Feb 20 23:08:56 2006
+++ src/po-lex.c Mon Feb 20 23:08:11 2006
@@ -75,7 +75,7 @@
/* Error handling during the parsing of a PO file.
These functions can access gram_pos and gram_pos_column. */
-#if !(__STDC__ && \
+#if !defined __sgi && !(__STDC__ && \
((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) \
|| (defined __GNUC__ && __GNUC__ >= 2 && !defined __APPLE_CC__)))

View file

@ -0,0 +1,14 @@
$NetBSD: patch-aq,v 1.1 2006/02/21 04:12:44 jschauma Exp $
--- src/po-lex.h.orig Mon Feb 20 23:09:02 2006
+++ src/po-lex.h Mon Feb 20 23:08:11 2006
@@ -71,7 +71,8 @@
/* 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
/* CAUTION: If you change this macro, you must also make identical
changes to the function of the same name in src/po-lex.c */