summaryrefslogtreecommitdiff
path: root/x11/libX11/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg>2007-07-03 13:35:49 +0000
committerjoerg <joerg>2007-07-03 13:35:49 +0000
commit36efe843f5019429645b370f087cfe0f21b9d7c5 (patch)
treee63bf6ee4c1014d69259767057bb30b225e2e7f6 /x11/libX11/Makefile
parent12193be87f9a0cd4536ce96323349cdfbc4a4293 (diff)
downloadpkgsrc-36efe843f5019429645b370f087cfe0f21b9d7c5.tar.gz
Wire down malloc(0) != NULL for more Xorg packages on NetBSD.
Diffstat (limited to 'x11/libX11/Makefile')
-rw-r--r--x11/libX11/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/x11/libX11/Makefile b/x11/libX11/Makefile
index 0ef07fe0777..f58a56ec422 100644
--- a/x11/libX11/Makefile
+++ b/x11/libX11/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2007/04/03 20:28:38 drochner Exp $
+# $NetBSD: Makefile,v 1.5 2007/07/03 13:35:49 joerg Exp $
#
DISTNAME= libX11-1.1.1
@@ -24,6 +24,12 @@ CONFIGURE_ARGS+= --enable-man-pages=3
CONFIGURE_ARGS+= --without-xcb
PKGCONFIG_OVERRIDE+= x11.pc.in
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+CONFIGURE_ARGS+= --disable-malloc0returnsnull
+.endif
+
.include "../../x11/bigreqsproto/buildlink3.mk"
.include "../../x11/inputproto/buildlink3.mk"
.include "../../x11/kbproto/buildlink3.mk"