summaryrefslogtreecommitdiff
path: root/devel/gettext/patches
diff options
context:
space:
mode:
authorjschauma <jschauma>2006-02-21 04:12:44 +0000
committerjschauma <jschauma>2006-02-21 04:12:44 +0000
commit5f2d92658f1fde0f215238c73fa1ff3ea024b123 (patch)
tree239c03a492f4fafa2dd3f46c0953a0372bb3bcfa /devel/gettext/patches
parentd594d0dde0a564ee35b0ec964be8318c9976a66e (diff)
downloadpkgsrc-5f2d92658f1fde0f215238c73fa1ff3ea024b123.tar.gz
add patches regarding PR pkg/30940 to allow IRIX MIPSPro compilers,
when passed certain CFLAGS, to not barf.
Diffstat (limited to 'devel/gettext/patches')
-rw-r--r--devel/gettext/patches/patch-ap13
-rw-r--r--devel/gettext/patches/patch-aq14
2 files changed, 27 insertions, 0 deletions
diff --git a/devel/gettext/patches/patch-ap b/devel/gettext/patches/patch-ap
new file mode 100644
index 00000000000..fc334597ced
--- /dev/null
+++ b/devel/gettext/patches/patch-ap
@@ -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__)))
+
diff --git a/devel/gettext/patches/patch-aq b/devel/gettext/patches/patch-aq
new file mode 100644
index 00000000000..6c062f2960a
--- /dev/null
+++ b/devel/gettext/patches/patch-aq
@@ -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 */