From 5f2d92658f1fde0f215238c73fa1ff3ea024b123 Mon Sep 17 00:00:00 2001 From: jschauma Date: Tue, 21 Feb 2006 04:12:44 +0000 Subject: add patches regarding PR pkg/30940 to allow IRIX MIPSPro compilers, when passed certain CFLAGS, to not barf. --- devel/gettext/patches/patch-ap | 13 +++++++++++++ devel/gettext/patches/patch-aq | 14 ++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 devel/gettext/patches/patch-ap create mode 100644 devel/gettext/patches/patch-aq (limited to 'devel/gettext/patches') 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 */ -- cgit v1.2.3