summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-08-01 20:51:45 +0000
committerjoerg <joerg@pkgsrc.org>2007-08-01 20:51:45 +0000
commit43f6a6ba800d827ab94fbf203c6ec01878170f2b (patch)
treebacc196e3da3446867f285aef5101ff704ced753 /math
parent7fb3ca68f7ccaf065f97e8d11880a0c9c4b4392a (diff)
downloadpkgsrc-43f6a6ba800d827ab94fbf203c6ec01878170f2b.tar.gz
Just use stdlib.h instead of malloc.h or defining them by hand.
Diffstat (limited to 'math')
-rw-r--r--math/capc-calc/distinfo3
-rw-r--r--math/capc-calc/patches/patch-ab25
2 files changed, 27 insertions, 1 deletions
diff --git a/math/capc-calc/distinfo b/math/capc-calc/distinfo
index 9148a53d6cd..98450aaa70d 100644
--- a/math/capc-calc/distinfo
+++ b/math/capc-calc/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.17 2007/02/22 20:30:15 drochner Exp $
+$NetBSD: distinfo,v 1.18 2007/08/01 20:51:45 joerg Exp $
SHA1 (calc-2.12.1.8.tar.gz) = 4ff5f8adb638565814319513e8acdf98191cb580
RMD160 (calc-2.12.1.8.tar.gz) = e1ff2fc7d8bc7ad9247d93645ae373774cc88314
Size (calc-2.12.1.8.tar.gz) = 1022615 bytes
SHA1 (patch-aa) = a23c0d11319f28d1de6d3c8d08330284d91772c6
+SHA1 (patch-ab) = 7c6f0a626edb7ea1cb3272ebc9cefa8cf81e1021
diff --git a/math/capc-calc/patches/patch-ab b/math/capc-calc/patches/patch-ab
new file mode 100644
index 00000000000..b4548fbf9bb
--- /dev/null
+++ b/math/capc-calc/patches/patch-ab
@@ -0,0 +1,25 @@
+$NetBSD: patch-ab,v 1.1 2007/08/01 20:51:45 joerg Exp $
+
+--- alloc.h.orig 2007-08-01 20:33:48.000000000 +0000
++++ alloc.h
+@@ -44,19 +44,7 @@
+ # include <calc/have_memmv.h>
+ #endif
+
+-#ifdef HAVE_MALLOC_H
+-# include <malloc.h>
+-#else
+-#if defined(FORCE_STDC) || (defined(__STDC__) && __STDC__ != 0) || defined(__cplusplus)
+- extern void *malloc();
+- extern void *realloc();
+- extern void free();
+-# else
+- extern char *malloc();
+- extern char *realloc();
+- extern void free();
+-# endif
+-#endif
++#include <stdlib.h>
+
+ #ifdef HAVE_STRING_H
+ # include <string.h>