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 | 09f8b386783b6ca14a408251ffff74d1ddb5a1a2 (patch) | |
tree | 3edd4f5607c30ccc814344c0ded8978775604fdd /x11/libXrandr | |
parent | 3025c4af35c7d3a786b9e083a3e0fd720ef9411b (diff) | |
download | pkgsrc-09f8b386783b6ca14a408251ffff74d1ddb5a1a2.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/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" |