diff options
author | kristerw <kristerw> | 2005-07-18 00:50:21 +0000 |
---|---|---|
committer | kristerw <kristerw> | 2005-07-18 00:50:21 +0000 |
commit | da12585e42f50e34af1f42996c602ecc9dc9d6d9 (patch) | |
tree | f2c0b4af86b4f7c612753fd0af21b42da2e933ba /emulators | |
parent | 8234f1ea2de38d7cb90bacf46df02e474ed4865c (diff) | |
download | pkgsrc-da12585e42f50e34af1f42996c602ecc9dc9d6d9.tar.gz |
The sources assume <malloc.h> exists. Create a fake one for platforms
that don't have it.
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/xtrs/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/emulators/xtrs/Makefile b/emulators/xtrs/Makefile index 9df68ab20b4..71f2c9e89fd 100644 --- a/emulators/xtrs/Makefile +++ b/emulators/xtrs/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2005/06/01 18:02:48 jlam Exp $ +# $NetBSD: Makefile,v 1.6 2005/07/18 00:50:21 kristerw Exp $ # DISTNAME= xtrs-4.9 @@ -28,6 +28,14 @@ post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xtrs ${INSTALL_DATA} ${WRKSRC}/xtrsrom4p.README ${PREFIX}/share/doc/xtrs +# 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 "../../devel/ncurses/buildlink3.mk" .include "../../devel/readline/buildlink3.mk" .include "../../mk/x11.buildlink3.mk" |