summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--print/ghostscript-agpl/Makefile4
-rw-r--r--print/ghostscript-gpl/Makefile4
2 files changed, 4 insertions, 4 deletions
diff --git a/print/ghostscript-agpl/Makefile b/print/ghostscript-agpl/Makefile
index 8d99a7a90be..219c5ef071b 100644
--- a/print/ghostscript-agpl/Makefile
+++ b/print/ghostscript-agpl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.62 2021/06/09 20:20:09 adam Exp $
+# $NetBSD: Makefile,v 1.63 2021/09/28 12:50:01 jperkin Exp $
DISTNAME= ghostscript-${GS_VERSION}
PKGNAME= ${DISTNAME:S/ghostscript/ghostscript-agpl/}
@@ -72,7 +72,7 @@ CFLAGS+= -fPIC
.endif
# Not ideal but too many files hardcode _XOPEN_SOURCE=500.
-.if !empty(CC_VERSION:Mgcc-[6-9]*) || !empty(PKGSRC_COMPILER:Mclang)
+.if !empty(CC_VERSION:Mgcc-[6-9]*) || !empty(CC_VERSION:Mgcc-1[0-9].*) || !empty(PKGSRC_COMPILER:Mclang)
CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
.else
CPPFLAGS.SunOS+= -D__C99FEATURES__
diff --git a/print/ghostscript-gpl/Makefile b/print/ghostscript-gpl/Makefile
index f818d128456..c2057e56c22 100644
--- a/print/ghostscript-gpl/Makefile
+++ b/print/ghostscript-gpl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.61 2021/05/24 19:53:45 wiz Exp $
+# $NetBSD: Makefile,v 1.62 2021/09/28 12:50:02 jperkin Exp $
DISTNAME= ghostscript-${GS_VERSION}
PKGNAME= ${DISTNAME:S/ghostscript/ghostscript-gpl/}
@@ -76,7 +76,7 @@ CFLAGS+= -fPIC
.endif
# Not ideal but too many files hardcode _XOPEN_SOURCE=500.
-.if !empty(CC_VERSION:Mgcc-[6-9]*) || !empty(PKGSRC_COMPILER:Mclang)
+.if !empty(CC_VERSION:Mgcc-[6-9]*) || !empty(CC_VERSION:Mgcc-1[0-9].*) || !empty(PKGSRC_COMPILER:Mclang)
CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
.endif