summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2018-02-01 13:34:33 +0000
committerjperkin <jperkin@pkgsrc.org>2018-02-01 13:34:33 +0000
commit90e4668245ee68dc845549c0ba57d2fc67c1f81e (patch)
treef44d745930be62942332c6cdcd97aaf954cb1059 /misc
parent712f33fddd9c92d5cd16e9ea5f1ec46d7b5a062b (diff)
downloadpkgsrc-90e4668245ee68dc845549c0ba57d2fc67c1f81e.tar.gz
screen: Support newer GCC and clang on SunOS.
Diffstat (limited to 'misc')
-rw-r--r--misc/screen/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/misc/screen/Makefile b/misc/screen/Makefile
index baefd52a874..33d849f5ee6 100644
--- a/misc/screen/Makefile
+++ b/misc/screen/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.105 2017/12/14 09:38:43 wiz Exp $
+# $NetBSD: Makefile,v 1.106 2018/02/01 13:34:33 jperkin Exp $
DISTNAME= screen-4.6.2
PKGREVISION= 1
@@ -44,7 +44,11 @@ SUBST_STAGE.paths= post-patch
PLIST_VARS+= terminfo
.if ${OPSYS} == "SunOS"
+. if !empty(PKGSRC_COMPILER:Mclang) || !empty(CC_VERSION:Mgcc-[6-9]*)
+CPPFLAGS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
+. else
CPPFLAGS+= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
+. endif
. if ${CURSES_DEFAULT} == "curses"
INSTALLATION_DIRS+= share/lib/terminfo
PLIST.terminfo= yes