pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/libXrandr Tell configure that malloc(0) != NULL on...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/027eb2c996fa
branches:  trunk
changeset: 531291:027eb2c996fa
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Jul 28 00:26:03 2007 +0000

description:
Tell configure that malloc(0) != NULL on NetBSD unless running out of
memory.

diffstat:

 x11/libXrandr/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r ac61d88589e2 -r 027eb2c996fa x11/libXrandr/Makefile
--- a/x11/libXrandr/Makefile    Sat Jul 28 00:23:13 2007 +0000
+++ b/x11/libXrandr/Makefile    Sat Jul 28 00:26:03 2007 +0000
@@ -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 @@
 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"



Home | Main Index | Thread Index | Old Index