summaryrefslogtreecommitdiff
path: root/x11/libXinerama
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-07-27 23:42:56 +0000
committerjoerg <joerg@pkgsrc.org>2007-07-27 23:42:56 +0000
commit5737d3b695857b6b282f779087a36b09fe9b5751 (patch)
treea516ea38f998d5d1a2764ef1efbd6d1133c26c54 /x11/libXinerama
parent0d90463f2cc00bd1b5414d9a0af016186634fc34 (diff)
downloadpkgsrc-5737d3b695857b6b282f779087a36b09fe9b5751.tar.gz
Tell configure that malloc(0) != NULL on NetBSD unless running out of
memory.
Diffstat (limited to 'x11/libXinerama')
-rw-r--r--x11/libXinerama/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/x11/libXinerama/Makefile b/x11/libXinerama/Makefile
index 14ea91af121..62b95ee1c29 100644
--- a/x11/libXinerama/Makefile
+++ b/x11/libXinerama/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2007/03/17 17:54:14 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2007/07/27 23:44:00 joerg Exp $
DISTNAME= libXinerama-1.0.2
CATEGORIES= x11
@@ -19,6 +19,12 @@ USE_TOOLS+= pkg-config
CONFIGURE_ENV+= LIB_MAN_SUFFIX=3
PKGCONFIG_OVERRIDE+= xinerama.pc.in
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+CONFIGURE_ARGS+= --disable-malloc0returnsnull
+.endif
+
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"