pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/libXres On NetBSD malloc(0) is not NULL if success...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e670a2113323
branches: trunk
changeset: 531788:e670a2113323
user: joerg <joerg%pkgsrc.org@localhost>
date: Mon Aug 06 14:05:21 2007 +0000
description:
On NetBSD malloc(0) is not NULL if successful. Annotate for
cross-compilation.
diffstat:
x11/libXres/Makefile | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 8ff6fce2fc0b -r e670a2113323 x11/libXres/Makefile
--- a/x11/libXres/Makefile Mon Aug 06 13:59:34 2007 +0000
+++ b/x11/libXres/Makefile Mon Aug 06 14:05:21 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2007/01/23 14:33:30 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2007/08/06 14:05:21 joerg Exp $
#
DISTNAME= libXres-1.0.3
@@ -18,6 +18,12 @@
PKGCONFIG_OVERRIDE+= xres.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/resourceproto/buildlink3.mk"
Home |
Main Index |
Thread Index |
Old Index