summaryrefslogtreecommitdiff
path: root/x11/libXres
diff options
context:
space:
mode:
authorjoerg <joerg>2007-08-06 14:05:21 +0000
committerjoerg <joerg>2007-08-06 14:05:21 +0000
commitf3c3883c3d42c157afb894243b8644fadef6b1b7 (patch)
tree4b0eb563885af8f39cf5366b28b2ee14bda193a2 /x11/libXres
parentd0203a9723a598a7fbd3b0f6d0cb6372f8612908 (diff)
downloadpkgsrc-f3c3883c3d42c157afb894243b8644fadef6b1b7.tar.gz
On NetBSD malloc(0) is not NULL if successful. Annotate for
cross-compilation.
Diffstat (limited to 'x11/libXres')
-rw-r--r--x11/libXres/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/x11/libXres/Makefile b/x11/libXres/Makefile
index f2db91b8d58..d854b883a20 100644
--- a/x11/libXres/Makefile
+++ b/x11/libXres/Makefile
@@ -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 @@ USE_TOOLS+= pkg-config
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"