pkgsrc-Changes archive

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

CVS commit: pkgsrc/misc/screen



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Thu Feb  1 13:34:33 UTC 2018

Modified Files:
        pkgsrc/misc/screen: Makefile

Log Message:
screen: Support newer GCC and clang on SunOS.


To generate a diff of this commit:
cvs rdiff -u -r1.105 -r1.106 pkgsrc/misc/screen/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/misc/screen/Makefile
diff -u pkgsrc/misc/screen/Makefile:1.105 pkgsrc/misc/screen/Makefile:1.106
--- pkgsrc/misc/screen/Makefile:1.105   Thu Dec 14 09:38:43 2017
+++ pkgsrc/misc/screen/Makefile Thu Feb  1 13:34:33 2018
@@ -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



Home | Main Index | Thread Index | Old Index