pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/netperf The sources assume <malloc.h> exists. Cre...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b37e1c4d4ca0
branches:  trunk
changeset: 497067:b37e1c4d4ca0
user:      kristerw <kristerw%pkgsrc.org@localhost>
date:      Tue Jul 19 23:51:09 2005 +0000

description:
The sources assume <malloc.h> exists.  Create a fake one for platforms
that don't have it.

diffstat:

 net/netperf/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r b31f89efd64e -r b37e1c4d4ca0 net/netperf/Makefile
--- a/net/netperf/Makefile      Tue Jul 19 23:01:55 2005 +0000
+++ b/net/netperf/Makefile      Tue Jul 19 23:51:09 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2005/07/15 18:27:52 jlam Exp $
+# $NetBSD: Makefile,v 1.16 2005/07/19 23:51:09 kristerw Exp $
 # KAME Id: Makefile,v 1.3 2000/01/21 12:34:29 itojun Exp
 #
 
@@ -25,4 +25,12 @@
        ${INSTALL_MAN} ${WRKSRC}/netperf.ps ${PREFIX}/share/doc/netperf
        ${GZIP_CMD} ${PREFIX}/share/doc/netperf/netperf.ps
 
+# The sources assume <malloc.h> exists.  Create a fake one for platforms
+# that don't have it.
+post-wrapper:
+       if ${TEST} ! -f /usr/include/malloc.h; then             \
+               ${ECHO} "#include <stdlib.h>"                   \
+                       > ${BUILDLINK_DIR}/include/malloc.h;    \
+       fi
+
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index