From 886a52070a6b3ff431aeb850f045bddee7cbf42b Mon Sep 17 00:00:00 2001 From: krion Date: Fri, 23 Mar 2007 10:15:18 +0000 Subject: Fix build with gcc41 Reported by: pointyhat via kris --- lang/gawk/files/patch-dfa.c | 13 +++++++++++++ lang/gawk/files/patch-hard-locale.h | 22 ++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 lang/gawk/files/patch-dfa.c create mode 100644 lang/gawk/files/patch-hard-locale.h diff --git a/lang/gawk/files/patch-dfa.c b/lang/gawk/files/patch-dfa.c new file mode 100644 index 000000000000..84fff35acc0a --- /dev/null +++ b/lang/gawk/files/patch-dfa.c @@ -0,0 +1,13 @@ + +$FreeBSD$ + +--- dfa.c.orig ++++ dfa.c +@@ -122,7 +122,6 @@ + static void dfamust PARAMS ((struct dfa *dfa)); + + static ptr_t xcalloc PARAMS ((size_t n, size_t s)); +-static ptr_t xmalloc PARAMS ((size_t n)); + static ptr_t xrealloc PARAMS ((ptr_t p, size_t n)); + #ifdef DEBUG + static void prtok PARAMS ((token t)); diff --git a/lang/gawk/files/patch-hard-locale.h b/lang/gawk/files/patch-hard-locale.h new file mode 100644 index 000000000000..7da22744c3cc --- /dev/null +++ b/lang/gawk/files/patch-hard-locale.h @@ -0,0 +1,22 @@ + +$FreeBSD$ + +--- hard-locale.h.orig ++++ hard-locale.h +@@ -22,6 +22,8 @@ + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + + ++static ptr_t xmalloc PARAMS ((size_t n)); ++ + /* Return nonzero if the current CATEGORY locale is hard, i.e. if you + can't get away with assuming traditional C or POSIX behavior. */ + static int +@@ -40,7 +42,6 @@ + if (strcmp (p, "C") == 0 || strcmp (p, "POSIX") == 0) + hard = 0; + # else +- static ptr_t xmalloc PARAMS ((size_t n)); + + char *locale = xmalloc (strlen (p) + 1); + strcpy (locale, p); -- cgit