From a7b76a857cbab50ee994bc5d2c20e5baf0ee84be Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 6 Oct 2001 17:52:21 +0000 Subject: [PATCH] Use "/usr/include/sys/null.h" if it exists instead of defining "NULL" manually. Fixes PR pkg/14150 by Martin Husemann. --- devel/glib/Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/devel/glib/Makefile b/devel/glib/Makefile index 0b391a725b86..fb978b17b96a 100644 --- a/devel/glib/Makefile +++ b/devel/glib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.38 2001/06/22 02:49:11 jlam Exp $ +# $NetBSD: Makefile,v 1.39 2001/10/06 17:52:21 tron Exp $ # FreeBSD Id: Makefile,v 1.2 1998/08/06 14:55:12 vanilla Exp # @@ -66,7 +66,14 @@ post-configure: -e "s|^\(#define.*GLIB_MICRO_VERSION\).*|\1 ${GLIB_MICRO_VERSION}|" \ $${file}.fixme > $${file}; \ ${RM} $${file}.fixme; \ - done - ${CHMOD} +x ${WRKSRC}/config.status + done; \ + ${CHMOD} +x config.status +.if exists(/usr/include/sys/null.h) + @cd ${WRKSRC}; \ + ${MV} glib.h glib.h.fixme; \ + ${SED} -e 's|^#define.NULL.*|#include |' \ + glib.h.fixme >glib.h; \ + ${RM} glib.h.fixme +.endif .include "../../mk/bsd.pkg.mk"