summaryrefslogtreecommitdiff
path: root/devel/ncurses/Makefile.common
diff options
context:
space:
mode:
Diffstat (limited to 'devel/ncurses/Makefile.common')
-rw-r--r--devel/ncurses/Makefile.common7
1 files changed, 5 insertions, 2 deletions
diff --git a/devel/ncurses/Makefile.common b/devel/ncurses/Makefile.common
index 316ec23842c..940506d6781 100644
--- a/devel/ncurses/Makefile.common
+++ b/devel/ncurses/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.20 2013/10/04 10:46:25 jperkin Exp $
+# $NetBSD: Makefile.common,v 1.21 2014/07/21 07:50:45 richard Exp $
#
# used by devel/ncursesw/Makefile
@@ -58,8 +58,11 @@ CONFIGURE_ARGS+= --without-manpage-tbl
.endif
.if ${OPSYS} == "SunOS"
+USE_LANGUAGES+= c99
.include "../../mk/compiler.mk"
-. if !empty(CC_VERSION:Mgcc-4.[6-9].*)
+. if !empty(CC_VERSION:Mgcc-4.*)
+#This may yet need to be adapted for systems prior to Solaris 10
+BUILDLINK_TRANSFORM+= rename:-D_XOPEN_SOURCE=500:-D_XOPEN_SOURCE=600
BUILDLINK_TRANSFORM+= rm:-D_XOPEN_SOURCE_EXTENDED
. endif
TERMINFO_SRC= ${WRKSRC}/misc/terminfo.src