diff options
author | joerg <joerg@pkgsrc.org> | 2007-07-28 00:26:03 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-07-28 00:26:03 +0000 |
commit | ef76e36b90c2b01a2ce2161620a63007c16df123 (patch) | |
tree | 3edd4f5607c30ccc814344c0ded8978775604fdd /x11 | |
parent | 052abd07e3b3a279bebd7264d9fcf4aeeb9a4738 (diff) | |
download | pkgsrc-ef76e36b90c2b01a2ce2161620a63007c16df123.tar.gz |
Tell configure that malloc(0) != NULL on NetBSD unless running out of
memory.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/libXrandr/Makefile | 8 |
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" |