diff options
author | joerg <joerg> | 2007-08-01 20:51:45 +0000 |
---|---|---|
committer | joerg <joerg> | 2007-08-01 20:51:45 +0000 |
commit | c5ee6815db80e14b3e7c81b9a549337ebc2166c1 (patch) | |
tree | bacc196e3da3446867f285aef5101ff704ced753 /math/capc-calc | |
parent | fc44111e2348ebbeaea7bb074ed2c9fdc2a9a214 (diff) | |
download | pkgsrc-c5ee6815db80e14b3e7c81b9a549337ebc2166c1.tar.gz |
Just use stdlib.h instead of malloc.h or defining them by hand.
Diffstat (limited to 'math/capc-calc')
-rw-r--r-- | math/capc-calc/distinfo | 3 | ||||
-rw-r--r-- | math/capc-calc/patches/patch-ab | 25 |
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> |