summaryrefslogtreecommitdiff
path: root/x11/libXrandr
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-07-28 00:26:03 +0000
committerjoerg <joerg@pkgsrc.org>2007-07-28 00:26:03 +0000
commitef76e36b90c2b01a2ce2161620a63007c16df123 (patch)
tree3edd4f5607c30ccc814344c0ded8978775604fdd /x11/libXrandr
parent052abd07e3b3a279bebd7264d9fcf4aeeb9a4738 (diff)
downloadpkgsrc-ef76e36b90c2b01a2ce2161620a63007c16df123.tar.gz
Tell configure that malloc(0) != NULL on NetBSD unless running out of
memory.
Diffstat (limited to 'x11/libXrandr')
-rw-r--r--x11/libXrandr/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/x11/libXrandr/Makefile b/x11/libXrandr/Makefile
index 63c601cb675..4c458b35ed2 100644
--- a/x11/libXrandr/Makefile
+++ b/x11/libXrandr/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2007/03/17 16:56:01 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2007/07/28 00:26:03 joerg Exp $
#
DISTNAME= libXrandr-1.2.1
@@ -21,6 +21,12 @@ USE_TOOLS+= pkg-config
CONFIGURE_ENV+= LIB_MAN_SUFFIX=3
PKGCONFIG_OVERRIDE+= xrandr.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/libXrender/buildlink3.mk"