summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2002-11-22 20:54:35 +0000
committerschmonz <schmonz@pkgsrc.org>2002-11-22 20:54:35 +0000
commit3307dee5f3230fc55d52c7e8f6e4ec62c2df35c9 (patch)
tree3c39655cc528a2bb7d8f1dc46e8aaf14cb7ec0e4
parenta27501212c27314534b50da877dc0c336e36e7a5 (diff)
downloadpkgsrc-3307dee5f3230fc55d52c7e8f6e4ec62c2df35c9.tar.gz
malloc() and realloc() take a size_t, not an unsigned int. Fixes
compilation on Darwin.
-rw-r--r--devel/c4/distinfo3
-rw-r--r--devel/c4/patches/patch-ab22
2 files changed, 24 insertions, 1 deletions
diff --git a/devel/c4/distinfo b/devel/c4/distinfo
index 59ad1a68f7d..726c5c51fd7 100644
--- a/devel/c4/distinfo
+++ b/devel/c4/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2002/09/01 05:58:49 schmonz Exp $
+$NetBSD: distinfo,v 1.2 2002/11/22 20:54:35 schmonz Exp $
SHA1 (c4.tar.gz) = 3fba3364520ed28db8d1507cecde1ec0923f04b2
Size (c4.tar.gz) = 46038 bytes
SHA1 (patch-aa) = 1401168ee1d37cfcd243c82400bf924d8b4747f9
+SHA1 (patch-ab) = b8f85a7c5f9c18ce62767e83f1f267899dc7aef3
diff --git a/devel/c4/patches/patch-ab b/devel/c4/patches/patch-ab
new file mode 100644
index 00000000000..3bc3b6b1f25
--- /dev/null
+++ b/devel/c4/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1 2002/11/22 20:54:36 schmonz Exp $
+
+--- main.c.orig Fri Feb 11 03:11:52 2000
++++ main.c
+@@ -62,7 +62,7 @@ void *
+ Alloc(unsigned int sz)
+ {
+ void * p;
+- extern void * malloc(unsigned int);
++ extern void * malloc(size_t);
+
+ p = malloc(sz);
+ if (!p)
+@@ -75,7 +75,7 @@ void *
+ ReAlloc(void * xp, unsigned int sz)
+ {
+ void * p;
+- extern void * realloc(void *, unsigned int);
++ extern void * realloc(void *, size_t);
+
+ p = realloc(xp, sz);
+ if (!p)