diff options
author | kristerw <kristerw> | 2005-07-19 23:51:09 +0000 |
---|---|---|
committer | kristerw <kristerw> | 2005-07-19 23:51:09 +0000 |
commit | bbd97e0008f0ba1458e8e3ed41fb0e1dc002f21b (patch) | |
tree | 8fa4c6c4380251969159dddfa9e0f67b626195f1 /net | |
parent | 62426529bd052226990557dd0528461867a75063 (diff) | |
download | pkgsrc-bbd97e0008f0ba1458e8e3ed41fb0e1dc002f21b.tar.gz |
The sources assume <malloc.h> exists. Create a fake one for platforms
that don't have it.
Diffstat (limited to 'net')
-rw-r--r-- | net/netperf/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/net/netperf/Makefile b/net/netperf/Makefile index 229062811a9..271e695e232 100644 --- a/net/netperf/Makefile +++ b/net/netperf/Makefile @@ -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 @@ post-install: ${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" |