From 43f6a6ba800d827ab94fbf203c6ec01878170f2b Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 1 Aug 2007 20:51:45 +0000 Subject: Just use stdlib.h instead of malloc.h or defining them by hand. --- math/capc-calc/distinfo | 3 ++- math/capc-calc/patches/patch-ab | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 math/capc-calc/patches/patch-ab (limited to 'math') 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 + #endif + +-#ifdef HAVE_MALLOC_H +-# include +-#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 + + #ifdef HAVE_STRING_H + # include -- cgit v1.2.3