diff options
author | kristerw <kristerw> | 2005-07-19 23:51:09 +0000 |
---|---|---|
committer | kristerw <kristerw> | 2005-07-19 23:51:09 +0000 |
commit | 2d3fb92354a27b678877c47030668a622379e715 (patch) | |
tree | 8fa4c6c4380251969159dddfa9e0f67b626195f1 /net | |
parent | 398c09e2fccacaf4dd920465a2c407c83d2a7898 (diff) | |
download | pkgsrc-2d3fb92354a27b678877c47030668a622379e715.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" |