summaryrefslogtreecommitdiff
path: root/x11/libXv
diff options
context:
space:
mode:
authorjoerg <joerg>2007-07-28 00:48:10 +0000
committerjoerg <joerg>2007-07-28 00:48:10 +0000
commitec0b8482dca65f2f6abbebc5349da183cbef12b4 (patch)
tree552b25dd17ac21fbc002979a094989a0be7dce01 /x11/libXv
parentb986a87c2b76e675149b85339fd4d9a23fceae76 (diff)
downloadpkgsrc-ec0b8482dca65f2f6abbebc5349da183cbef12b4.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/Makefile8
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"