diff options
author | joerg <joerg@pkgsrc.org> | 2007-08-06 14:05:21 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-08-06 14:05:21 +0000 |
commit | c27fcbe7f571faef00e7a74bff3b2f8696744919 (patch) | |
tree | 4b0eb563885af8f39cf5366b28b2ee14bda193a2 | |
parent | 5268c8e6324496de84793cae185592c8369eac56 (diff) | |
download | pkgsrc-c27fcbe7f571faef00e7a74bff3b2f8696744919.tar.gz |
On NetBSD malloc(0) is not NULL if successful. Annotate for
cross-compilation.
-rw-r--r-- | x11/libXres/Makefile | 8 |
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" |