diff options
author | joerg <joerg> | 2007-07-27 20:39:11 +0000 |
---|---|---|
committer | joerg <joerg> | 2007-07-27 20:39:11 +0000 |
commit | 5f63540fb1b8be1cdd4ae38231f9dccf09cf9301 (patch) | |
tree | 4f461d6eb7a83cc97f6100c4806e206408f57875 /x11/libXScrnSaver | |
parent | b0f843869f4e91684df59f7ad23f0ab87c471550 (diff) | |
download | pkgsrc-5f63540fb1b8be1cdd4ae38231f9dccf09cf9301.tar.gz |
Tell configure that malloc(0) != NULL on NetBSD unless running out of
memory.
Diffstat (limited to 'x11/libXScrnSaver')
-rw-r--r-- | x11/libXScrnSaver/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/x11/libXScrnSaver/Makefile b/x11/libXScrnSaver/Makefile index c85e9e24297..e7201852396 100644 --- a/x11/libXScrnSaver/Makefile +++ b/x11/libXScrnSaver/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2006/12/27 12:23:15 joerg Exp $ +# $NetBSD: Makefile,v 1.2 2007/07/27 20:39:11 joerg Exp $ # DISTNAME= libXScrnSaver-1.1.2 @@ -19,6 +19,12 @@ USE_TOOLS+= pkg-config PKGCONFIG_OVERRIDE+= xscrnsaver.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/scrnsaverproto/buildlink3.mk" |