summaryrefslogtreecommitdiff
path: root/games/spider
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2012-06-18 04:19:09 +0000
committerdholland <dholland@pkgsrc.org>2012-06-18 04:19:09 +0000
commit3eb23152b43f08e3238d92df19887d6732d8bad5 (patch)
treef5ed17b679bced7b084c39c093c6ee8ee6dd208e /games/spider
parentdf723db7a1b0091b716978e767848bdb8d5d8de1 (diff)
downloadpkgsrc-3eb23152b43f08e3238d92df19887d6732d8bad5.tar.gz
Don't provide own malloc declarations; use stdlib.h instead. Should fix
Linux build.
Diffstat (limited to 'games/spider')
-rw-r--r--games/spider/distinfo3
-rw-r--r--games/spider/patches/patch-globals_h24
2 files changed, 26 insertions, 1 deletions
diff --git a/games/spider/distinfo b/games/spider/distinfo
index 617bf443737..95ce8784f2a 100644
--- a/games/spider/distinfo
+++ b/games/spider/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2006/08/02 16:04:33 kristerw Exp $
+$NetBSD: distinfo,v 1.5 2012/06/18 04:19:09 dholland Exp $
SHA1 (spider.tar.gz) = 384c43857b8a7322ba1c80bc37513415f75db482
RMD160 (spider.tar.gz) = aedcf3e18eeefd98f475b2c2408f49b99f4f9ef0
@@ -6,3 +6,4 @@ Size (spider.tar.gz) = 95318 bytes
SHA1 (patch-aa) = 204b8d75f8583fe71f89f18dfdd1774cd2042b2f
SHA1 (patch-ab) = 1ae99ebe79d79beee3bd0ebd62998f62c6fca51e
SHA1 (patch-ac) = eba9502b078037755027b0095155fb9b0e4c7c8b
+SHA1 (patch-globals_h) = 15aebc22aa9f182af977c20adb5f73e4da468f02
diff --git a/games/spider/patches/patch-globals_h b/games/spider/patches/patch-globals_h
new file mode 100644
index 00000000000..060adec3a05
--- /dev/null
+++ b/games/spider/patches/patch-globals_h
@@ -0,0 +1,24 @@
+$NetBSD: patch-globals_h,v 1.1 2012/06/18 04:19:09 dholland Exp $
+
+- use standard headers
+- don't provide own malloc declarations
+
+--- globals.h~ 1991-09-28 17:46:20.000000000 +0000
++++ globals.h
+@@ -10,6 +10,8 @@
+ *
+ */
+
++#include <stdlib.h>
++
+ /*
+ * spider global variables
+ */
+@@ -95,7 +97,3 @@ void do_expand();
+ #ifdef XAW
+ Bool can_get_help_files();
+ #endif
+-
+-extern char *malloc();
+-extern char *calloc();
+-extern char *realloc();