diff options
author | kristerw <kristerw@pkgsrc.org> | 2005-07-19 04:25:43 +0000 |
---|---|---|
committer | kristerw <kristerw@pkgsrc.org> | 2005-07-19 04:25:43 +0000 |
commit | e8781491eed7f732b3222fb3ca8d69d0e8f5df27 (patch) | |
tree | 561d0cc1bf046432e7e21fe21882da3eb802aecd /net/radiusd-cistron | |
parent | 11577c4d6a3a76c29937bd5aafa13ba96e693200 (diff) | |
download | pkgsrc-e8781491eed7f732b3222fb3ca8d69d0e8f5df27.tar.gz |
The sources assume <malloc.h> exists. Create a fake one for platforms
that don't have it.
Diffstat (limited to 'net/radiusd-cistron')
-rw-r--r-- | net/radiusd-cistron/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/net/radiusd-cistron/Makefile b/net/radiusd-cistron/Makefile index 70c3143444b..d5cc5545c2b 100644 --- a/net/radiusd-cistron/Makefile +++ b/net/radiusd-cistron/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2005/04/11 21:46:59 tv Exp $ +# $NetBSD: Makefile,v 1.16 2005/07/19 04:25:43 kristerw Exp $ DISTNAME= radiusd-cistron-1.6.7 PKGREVISION= 1 @@ -53,4 +53,12 @@ post-install: ${INSTALL_MAN} ${WRKSRC}/doc/${i} ${PREFIX}/man/man8/ .endfor +# 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" |