pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/nas replace <malloc.h> with <stdlib.h>, allowing...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c52ca90cd127
branches:  trunk
changeset: 463032:c52ca90cd127
user:      grant <grant%pkgsrc.org@localhost>
date:      Sun Oct 26 00:02:05 2003 +0000

description:
replace <malloc.h> with <stdlib.h>, allowing this to build on systems
without <malloc.h>.

diffstat:

 audio/nas/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 7637c71447e0 -r c52ca90cd127 audio/nas/Makefile
--- a/audio/nas/Makefile        Sat Oct 25 23:37:26 2003 +0000
+++ b/audio/nas/Makefile        Sun Oct 26 00:02:05 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2003/09/17 19:39:58 grant Exp $
+# $NetBSD: Makefile,v 1.33 2003/10/26 00:02:05 grant Exp $
 
 DISTNAME=      nas-1.6.src
 PKGNAME=       ${DISTNAME:S/.src//}
@@ -25,6 +25,12 @@
 
 REPLACE_PERL=          clients/audio/auscope/auscope
 
+post-patch:
+       @for f in `${FIND} ${WRKSRC} -name '*.[ch]'`; do                \
+               ${SED} -e "s|<malloc.h>|<stdlib.h>|g" $$f > $$f.patch   \
+               && ${MV} $$f.patch $$f;                                 \
+       done
+
 pre-configure:
        cd ${WRKSRC}; for file in                                       \
                config/NetAudio.def;                                    \



Home | Main Index | Thread Index | Old Index