pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/radiusd-cistron The sources assume <malloc.h> exis...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0d797be2b1cc
branches:  trunk
changeset: 497007:0d797be2b1cc
user:      kristerw <kristerw%pkgsrc.org@localhost>
date:      Tue Jul 19 04:25:43 2005 +0000

description:
The sources assume <malloc.h> exists.  Create a fake one for platforms
that don't have it.

diffstat:

 net/radiusd-cistron/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 0f8af2d39351 -r 0d797be2b1cc net/radiusd-cistron/Makefile
--- a/net/radiusd-cistron/Makefile      Tue Jul 19 04:18:51 2005 +0000
+++ b/net/radiusd-cistron/Makefile      Tue Jul 19 04:25:43 2005 +0000
@@ -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 @@
        ${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"



Home | Main Index | Thread Index | Old Index