summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2006-07-29 04:35:02 +0000
committerminskim <minskim@pkgsrc.org>2006-07-29 04:35:02 +0000
commitd77d9cb3e408c99d6ca868a85cfefb4490b84a67 (patch)
tree3c5b33d017b5932a75520dc4ce4b6ab48261fe2d /x11
parent71223628535dd9032056d22dc91d7513efa13b65 (diff)
downloadpkgsrc-d77d9cb3e408c99d6ca868a85cfefb4490b84a67.tar.gz
Remove conflicting declaration of malloc() and realloc(). Include
stdlib.h instead.
Diffstat (limited to 'x11')
-rw-r--r--x11/xwit/distinfo3
-rw-r--r--x11/xwit/patches/patch-ab30
2 files changed, 32 insertions, 1 deletions
diff --git a/x11/xwit/distinfo b/x11/xwit/distinfo
index d90ca741f78..dbe9f641b25 100644
--- a/x11/xwit/distinfo
+++ b/x11/xwit/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2005/02/23 17:36:26 wiz Exp $
+$NetBSD: distinfo,v 1.4 2006/07/29 04:35:02 minskim Exp $
SHA1 (xwit-3.4.tar.gz) = 916f32c200f8bd5d30738b9added84612c1366ae
RMD160 (xwit-3.4.tar.gz) = 62a92780352e81130e8d894e377744b61c67bd90
Size (xwit-3.4.tar.gz) = 14536 bytes
SHA1 (patch-aa) = cd63c5ad56acd9ce0c2ff8c3e278f33871a67b24
+SHA1 (patch-ab) = c9cd41f627b57075ad08303bb0ff5a6993e2bc10
diff --git a/x11/xwit/patches/patch-ab b/x11/xwit/patches/patch-ab
new file mode 100644
index 00000000000..c34272a163b
--- /dev/null
+++ b/x11/xwit/patches/patch-ab
@@ -0,0 +1,30 @@
+$NetBSD: patch-ab,v 1.1 2006/07/29 04:35:02 minskim Exp $
+
+--- dsimple.c.orig 1995-10-18 23:59:17.000000000 +0000
++++ dsimple.c
+@@ -5,6 +5,7 @@
+ #include <X11/Xutil.h>
+ #include <X11/cursorfont.h>
+ #include <stdio.h>
++#include <stdlib.h>
+ /*
+ * Other_stuff.h: Definitions of routines in other_stuff.
+ *
+@@ -46,7 +47,7 @@ extern int screen;
+ char *Malloc(size)
+ unsigned size;
+ {
+- char *data, *malloc();
++ char *data;
+
+ if (!(data = malloc(size)))
+ Fatal_Error("Out of memory!");
+@@ -62,7 +63,7 @@ char *Realloc(ptr, size)
+ char *ptr;
+ int size;
+ {
+- char *new_ptr, *realloc();
++ char *new_ptr;
+
+ if (!ptr)
+ return(Malloc(size));