From d5dd47b9a8caf6b84febd1260b806e22ff149133 Mon Sep 17 00:00:00 2001 From: wiedi Date: Sun, 5 May 2019 20:11:25 +0000 Subject: pngcrush: fix build on SunOS --- graphics/pngcrush/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'graphics') diff --git a/graphics/pngcrush/Makefile b/graphics/pngcrush/Makefile index 9bfdffe673b..51b533a751c 100644 --- a/graphics/pngcrush/Makefile +++ b/graphics/pngcrush/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.89 2018/08/02 15:02:12 adam Exp $ +# $NetBSD: Makefile,v 1.90 2019/05/05 20:11:25 wiedi Exp $ DISTNAME= pngcrush-1.8.13-nolib PKGNAME= ${DISTNAME:S/-nolib//} @@ -14,6 +14,8 @@ LICENSE= zlib NO_CONFIGURE= yes INSTALLATION_DIRS= bin +CFLAGS.SunOS+= -D_XOPEN_SOURCE=600 + do-build: cd ${WRKSRC} && ${CC} -DPNG_USE_LOCAL_ARRAYS \ ${CFLAGS} `libpng-config --cflags` -o pngcrush pngcrush.c \ -- cgit v1.2.3