pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/csound4 Don't use malloc.h.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4460f265bf5a
branches:  trunk
changeset: 531921:4460f265bf5a
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Aug 08 18:32:54 2007 +0000

description:
Don't use malloc.h.

diffstat:

 audio/csound4/distinfo         |   4 +++-
 audio/csound4/patches/patch-ak |  29 +++++++++++++++++++++++++++++
 audio/csound4/patches/patch-al |  37 +++++++++++++++++++++++++++++++++++++
 3 files changed, 69 insertions(+), 1 deletions(-)

diffs (89 lines):

diff -r 56ef8b1377d2 -r 4460f265bf5a audio/csound4/distinfo
--- a/audio/csound4/distinfo    Wed Aug 08 18:32:45 2007 +0000
+++ b/audio/csound4/distinfo    Wed Aug 08 18:32:54 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2006/05/21 22:29:09 ben Exp $
+$NetBSD: distinfo,v 1.10 2007/08/08 18:32:54 joerg Exp $
 
 SHA1 (csound/csound-4.23f13gbs.0.tar.gz) = 2f86efb6e53f43cd16a6cfb0ff9a0786982f7af9
 RMD160 (csound/csound-4.23f13gbs.0.tar.gz) = 46e161975afbf68f5591842e2921ea1822df30b2
@@ -13,3 +13,5 @@
 SHA1 (patch-ah) = 4bd7cc1935be17c4d4629d1b59e93c9836868a04
 SHA1 (patch-ai) = b53a6e8fdb4cb53dd07ab122023f0bf291c350d3
 SHA1 (patch-aj) = fa3c05b0c5e24775d5c05838177fcec943809b35
+SHA1 (patch-ak) = c0ae45c78220a871c88dd515e8fc3b04adcdb113
+SHA1 (patch-al) = ee49c6343f0850c00f35441a192d122216a12c3c
diff -r 56ef8b1377d2 -r 4460f265bf5a audio/csound4/patches/patch-ak
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/csound4/patches/patch-ak    Wed Aug 08 18:32:54 2007 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-ak,v 1.1 2007/08/08 18:32:55 joerg Exp $
+
+--- csound/dpwelib.h.orig      2007-08-08 17:40:16.000000000 +0000
++++ csound/dpwelib.h
+@@ -73,24 +73,8 @@
+ #define READMODE "rb"
+ #define WRITEMODE "wb+"
+ 
+-#ifdef NeXT
+ #include <stdlib.h>
+ 
+-#else  /* ultrix, not NeXT */
+-#ifdef clipper
+-#else
+-# if defined(LATTICE) || defined(WIN32) || defined(SGI) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__MACH__)
+-#  include <stdlib.h>
+-# else
+-#  include <unistd.h>
+-#  ifndef mac_classic
+-#   include <malloc.h>
+-#  endif
+-# endif
+-#endif
+-
+-#endif /* NeXT or ultrix */
+-
+ #ifdef sun
+ #define  strchr(A,B)    index(A,B)
+ #define  strrchr(A,B)   rindex(A,B)
diff -r 56ef8b1377d2 -r 4460f265bf5a audio/csound4/patches/patch-al
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/csound4/patches/patch-al    Wed Aug 08 18:32:54 2007 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-al,v 1.1 2007/08/08 18:32:55 joerg Exp $
+
+--- csound/pvoc.c.orig 2007-08-08 17:47:48.000000000 +0000
++++ csound/pvoc.c
+@@ -31,29 +31,9 @@
+ #include "sysdep.h"
+ 
+ #include <stdio.h>
+-#if defined(mac_classic) || defined(SYMANTEC) || defined(__FreeBSD__) || defined(__NetBSD__)
+-#  include <stdlib.h>           /* for malloc() */
+-#  define READMODE "rb"
+-#  define WRITEMODE "wb+"
+-#else
+-#  ifdef NeXT
+-#    include <stdlib.h>
+-#  else
+-#    ifdef clipper
+-#      define SEEK_SET (0)
+-#    else
+-#      if !defined(LATTICE) && !defined(__WATCOMC__) && !defined(WIN32) && !defined(__ncc) && !defined(__MACH__)
+-#        include <unistd.h>
+-#        include <malloc.h>
+-#      else
+-#        include <stdlib.h>
+-#      endif /* LATTICE */
+-#    endif /* clipper */
+-#  endif /* NeXT */
+-#  include <sys/types.h>
+-#  define READMODE "r"
+-#  define WRITEMODE "w+"
+-#endif /* SYMANTEC */
++#include <stdlib.h>           /* for malloc() */
++#define READMODE "rb"
++#define WRITEMODE "wb+"
+ 
+ #if defined(SYS5) || defined(WIN32)
+ #include <fcntl.h>



Home | Main Index | Thread Index | Old Index