From 775f36b80b1763f024b294182bc4231f5b1e641e Mon Sep 17 00:00:00 2001 From: jperkin Date: Thu, 25 Jan 2018 10:31:24 +0000 Subject: ghostscript-agpl: Add _XOPEN_SOURCE workaround. --- print/ghostscript-agpl/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'print') diff --git a/print/ghostscript-agpl/Makefile b/print/ghostscript-agpl/Makefile index 2c906de217a..8ccd47b755f 100644 --- a/print/ghostscript-agpl/Makefile +++ b/print/ghostscript-agpl/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.28 2017/11/12 16:03:35 khorben Exp $ +# $NetBSD: Makefile,v 1.29 2018/01/25 10:31:24 jperkin Exp $ DISTNAME= ghostscript-${GS_VERSION} PKGNAME= ${DISTNAME:S/ghostscript/ghostscript-agpl/} @@ -62,6 +62,11 @@ SUBST_SED.resdir= -e "s|/Resource/|${GS_RESOURCEDIR}/|g" CFLAGS+= -fPIC .endif +# Not ideal but too many files hardcode _XOPEN_SOURCE=500. +.if !empty(CC_VERSION:Mgcc-[6-9]*) || !empty(PKGSRC_COMPILER:Mclang) +CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ +.endif + # Interim IRIX build fix, the real problem is that fontconfig.pc doesn't # require linking against libiconv when it should do so. BUILDLINK_TRANSFORM.IRIX+= l:fontconfig:fontconfig:iconv -- cgit v1.2.3