summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2005-07-19 04:14:50 +0000
committerkristerw <kristerw@pkgsrc.org>2005-07-19 04:14:50 +0000
commit04cc43a3764735571fdf4b1ffb49dac5df1a076f (patch)
tree6b835ffe4e9386448e98aa22f3583ef783af1ca7 /security
parent08772386099a0cdf8fcfdfe44958ba2e128b0857 (diff)
downloadpkgsrc-04cc43a3764735571fdf4b1ffb49dac5df1a076f.tar.gz
The sources assume <malloc.h> exists. Create a fake one for platforms
that don't have it.
Diffstat (limited to 'security')
-rw-r--r--security/AiSSLtelnet/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/security/AiSSLtelnet/Makefile b/security/AiSSLtelnet/Makefile
index ce6fbd70826..f2ac7d7e36b 100644
--- a/security/AiSSLtelnet/Makefile
+++ b/security/AiSSLtelnet/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2004/01/20 12:25:33 agc Exp $
+# $NetBSD: Makefile,v 1.6 2005/07/19 04:14:50 kristerw Exp $
#
DISTNAME= AiSSLtelnet-0.15
@@ -23,4 +23,12 @@ pre-install:
${INSTALL_DATA} ${WRKSRC}/aicrypto/COPYRIGHT ${WRKSRC}/README \
${WRKSRC}/README-j ${PREFIX}/share/doc/AiSSLtelnet
+# 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"