diff options
author | joerg <joerg@pkgsrc.org> | 2007-07-27 23:42:56 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-07-27 23:42:56 +0000 |
commit | 1e73ce0fd977e3d1e396fb4b7a3b7283c82cec9a (patch) | |
tree | a516ea38f998d5d1a2764ef1efbd6d1133c26c54 /x11/libXi | |
parent | d02254f49175209d6a9e970d81c1e2875f73a721 (diff) | |
download | pkgsrc-1e73ce0fd977e3d1e396fb4b7a3b7283c82cec9a.tar.gz |
Tell configure that malloc(0) != NULL on NetBSD unless running out of
memory.
Diffstat (limited to 'x11/libXi')
-rw-r--r-- | x11/libXi/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/x11/libXi/Makefile b/x11/libXi/Makefile index 18b315449c1..fac93ead55f 100644 --- a/x11/libXi/Makefile +++ b/x11/libXi/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2007/07/12 17:11:57 joerg Exp $ +# $NetBSD: Makefile,v 1.4 2007/07/27 23:42:56 joerg Exp $ # DISTNAME= libXi-1.1.1 @@ -20,6 +20,12 @@ USE_TOOLS+= pkg-config CONFIGURE_ENV+= LIB_MAN_SUFFIX=3 PKGCONFIG_OVERRIDE+= xi.pc.in +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "NetBSD" +CONFIGURE_ARGS+= --disable-malloc0returnsnull +.endif + .include "../../x11/inputproto/buildlink3.mk" .include "../../x11/libX11/buildlink3.mk" .include "../../x11/libXext/buildlink3.mk" |