diff options
author | joerg <joerg@pkgsrc.org> | 2007-07-28 00:48:10 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-07-28 00:48:10 +0000 |
commit | 6e6be9ccce6b4ef30516c8660ef1087b8a5f3a64 (patch) | |
tree | 552b25dd17ac21fbc002979a094989a0be7dce01 /x11/libXv | |
parent | e0d080e482a63d308357af66c3b33de798d07626 (diff) | |
download | pkgsrc-6e6be9ccce6b4ef30516c8660ef1087b8a5f3a64.tar.gz |
Tell configure that malloc(0) != NULL on NetBSD unless running out of
memory.
Diffstat (limited to 'x11/libXv')
-rw-r--r-- | x11/libXv/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/x11/libXv/Makefile b/x11/libXv/Makefile index 99c4aa396d0..9e211f3be20 100644 --- a/x11/libXv/Makefile +++ b/x11/libXv/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2007/01/23 13:44:08 joerg Exp $ +# $NetBSD: Makefile,v 1.3 2007/07/28 00:48:10 joerg Exp $ # DISTNAME= libXv-1.0.3 @@ -18,6 +18,12 @@ PKGCONFIG_OVERRIDE+= xv.pc.in GNU_CONFIGURE= yes USE_TOOLS+= pkg-config +.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/videoproto/buildlink3.mk" |