Received: by mail.netbsd.org (Postfix, from userid 605) id 7B55E84D98; Thu, 25 Jan 2018 10:34:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 06AD884D8E for ; Thu, 25 Jan 2018 10:34:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id T51bEv33z0ln for ; Thu, 25 Jan 2018 10:34:25 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 6401784D84 for ; Thu, 25 Jan 2018 10:34:25 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 5D99AFBDE; Thu, 25 Jan 2018 10:34:25 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1516876465195770" MIME-Version: 1.0 Date: Thu, 25 Jan 2018 10:34:25 +0000 From: "Jonathan Perkin" Subject: CVS commit: pkgsrc/print/ghostscript-gpl To: pkgsrc-changes@NetBSD.org Reply-To: jperkin@netbsd.org X-Mailer: log_accum Message-Id: <20180125103425.5D99AFBDE@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1516876465195770 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: jperkin Date: Thu Jan 25 10:34:25 UTC 2018 Modified Files: pkgsrc/print/ghostscript-gpl: Makefile Log Message: ghostscript-gpl: Add _XOPEN_SOURCE workaround for clang too. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 pkgsrc/print/ghostscript-gpl/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1516876465195770 Content-Disposition: inline Content-Length: 988 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/print/ghostscript-gpl/Makefile diff -u pkgsrc/print/ghostscript-gpl/Makefile:1.37 pkgsrc/print/ghostscript-gpl/Makefile:1.38 --- pkgsrc/print/ghostscript-gpl/Makefile:1.37 Thu Nov 23 17:19:43 2017 +++ pkgsrc/print/ghostscript-gpl/Makefile Thu Jan 25 10:34:25 2018 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.37 2017/11/23 17:19:43 wiz Exp $ +# $NetBSD: Makefile,v 1.38 2018/01/25 10:34:25 jperkin Exp $ DISTNAME= ghostscript-${GS_VERSION} PKGNAME= ${DISTNAME:S/ghostscript/ghostscript-gpl/} @@ -76,8 +76,9 @@ CONFIGURE_ENV.HPUX+= ac_cv_func_fopen64= CFLAGS+= -fPIC .endif -.if ${OPSYS} == "SunOS" && !empty(CC_VERSION:Mgcc-[6-9]*) -CPPFLAGS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ +# 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 --_----------=_1516876465195770--