summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-07-27 23:29:40 +0000
committerjoerg <joerg@pkgsrc.org>2007-07-27 23:29:40 +0000
commit048beaa5b67d6c6e3e80165b1fc847fc6be206bd (patch)
tree6c3208d80996bab8d7296bde8facbfd3c4a1a524 /x11
parentfe72e94b964de695535dcc0227ce1f014a15cc26 (diff)
downloadpkgsrc-048beaa5b67d6c6e3e80165b1fc847fc6be206bd.tar.gz
Tell configure that malloc(0) != NULL on NetBSD unless running out of
memory.
Diffstat (limited to 'x11')
-rw-r--r--x11/libXrender/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/x11/libXrender/Makefile b/x11/libXrender/Makefile
index 35e8a4ca27e..7929033c719 100644
--- a/x11/libXrender/Makefile
+++ b/x11/libXrender/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/11/03 21:18:51 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2007/07/27 23:29:40 joerg Exp $
#
DISTNAME= libXrender-0.9.2
@@ -20,6 +20,12 @@ USE_TOOLS+= pkg-config
PKGCONFIG_OVERRIDE+= xrender.pc.in
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+CONFIGURE_ARGS+= --disable-malloc0returnsnull
+.endif
+
.include "../../x11/renderproto/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"