summaryrefslogtreecommitdiff
path: root/lang/gawk
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2007-03-23 10:15:18 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2007-03-23 10:15:18 +0000
commit45b6a8f855cf699a5e4db8c0548b86d6a6515717 (patch)
tree1d72be0512a60738f8a503e62b68be97ee5cfc5a /lang/gawk
parentReset j.haarman@synantics.com by request due to lack of time to work on (diff)
Fix build with gcc41
Reported by: pointyhat via kris
Notes
Notes: svn path=/head/; revision=188086
Diffstat (limited to 'lang/gawk')
-rw-r--r--lang/gawk/files/patch-dfa.c13
-rw-r--r--lang/gawk/files/patch-hard-locale.h22
2 files changed, 35 insertions, 0 deletions
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);