pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/screen screen: Support newer GCC and clang on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6a3c671c9e78
branches:  trunk
changeset: 374963:6a3c671c9e78
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Feb 01 13:34:33 2018 +0000

description:
screen: Support newer GCC and clang on SunOS.

diffstat:

 misc/screen/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 5a7cb075fbd6 -r 6a3c671c9e78 misc/screen/Makefile
--- a/misc/screen/Makefile      Thu Feb 01 11:21:58 2018 +0000
+++ b/misc/screen/Makefile      Thu Feb 01 13:34:33 2018 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index