pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/capc-calc Just use stdlib.h instead of malloc.h o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/60efe74f302f
branches:  trunk
changeset: 531542:60efe74f302f
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Aug 01 20:51:45 2007 +0000

description:
Just use stdlib.h instead of malloc.h or defining them by hand.

diffstat:

 math/capc-calc/distinfo         |   3 ++-
 math/capc-calc/patches/patch-ab |  25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletions(-)

diffs (41 lines):

diff -r 9eef3054f269 -r 60efe74f302f math/capc-calc/distinfo
--- a/math/capc-calc/distinfo   Wed Aug 01 20:51:23 2007 +0000
+++ b/math/capc-calc/distinfo   Wed Aug 01 20:51:45 2007 +0000
@@ -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 -r 9eef3054f269 -r 60efe74f302f math/capc-calc/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/capc-calc/patches/patch-ab   Wed Aug 01 20:51:45 2007 +0000
@@ -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>



Home | Main Index | Thread Index | Old Index