summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"