summaryrefslogtreecommitdiff
path: root/lang/gawk
diff options
context:
space:
mode:
authortonio <tonio>2005-09-06 14:29:17 +0000
committertonio <tonio>2005-09-06 14:29:17 +0000
commit2000d64f46a8804009cd422ae01802cb2aa88e8d (patch)
treef24d6c2ec7003dcd934a429eee3689556645b2d2 /lang/gawk
parent81069b006d09d1da86dc9edeea9cf8083f3eb2ed (diff)
downloadpkgsrc-2000d64f46a8804009cd422ae01802cb2aa88e8d.tar.gz
Fix build under darwin anf gcc4
Patches taken from darwinports (thanks toby)
Diffstat (limited to 'lang/gawk')
-rw-r--r--lang/gawk/distinfo4
-rw-r--r--lang/gawk/patches/patch-ac22
-rw-r--r--lang/gawk/patches/patch-ad12
3 files changed, 37 insertions, 1 deletions
diff --git a/lang/gawk/distinfo b/lang/gawk/distinfo
index 532d3aefec1..e5406f28f5a 100644
--- a/lang/gawk/distinfo
+++ b/lang/gawk/distinfo
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.16 2005/09/05 16:58:22 wiz Exp $
+$NetBSD: distinfo,v 1.17 2005/09/06 14:29:17 tonio Exp $
SHA1 (gawk-3.1.5.tar.bz2) = 0d5694461f1c32f1eae41a1c0d7ba0939b47e369
RMD160 (gawk-3.1.5.tar.bz2) = 8eae0f173fcb344f97d811fa5bb5fd390a76b886
Size (gawk-3.1.5.tar.bz2) = 1756783 bytes
SHA1 (patch-ab) = 39a98bd71349e2eb7ac7c6bb67cb2b8617fda6bd
+SHA1 (patch-ac) = 0880bfab2202fd9cdca64f2082af1d7741e5a9a1
+SHA1 (patch-ad) = 9f0eda730720deefaba2f0a62362997dc95e003f
diff --git a/lang/gawk/patches/patch-ac b/lang/gawk/patches/patch-ac
new file mode 100644
index 00000000000..629f574136c
--- /dev/null
+++ b/lang/gawk/patches/patch-ac
@@ -0,0 +1,22 @@
+$NetBSD: patch-ac,v 1.8 2005/09/06 14:29:17 tonio Exp $
+
+--- hard-locale.h.orig 2005-05-11 17:28:16.000000000 +0200
++++ 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,8 +42,6 @@ hard_locale (int category)
+ 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);
+
diff --git a/lang/gawk/patches/patch-ad b/lang/gawk/patches/patch-ad
new file mode 100644
index 00000000000..22bd14d248e
--- /dev/null
+++ b/lang/gawk/patches/patch-ad
@@ -0,0 +1,12 @@
+$NetBSD: patch-ad,v 1.3 2005/09/06 14:29:17 tonio Exp $
+
+--- dfa.c.orig 2005-07-26 20:07:43.000000000 +0200
++++ dfa.c
+@@ -122,7 +122,6 @@ extern void free();
+ 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));