- Switch to modern TTY. This is backported from newer ncurses 5.6 snapshot.

PR:		ports/124483
Submitted by:	ed@
This commit is contained in:
Rong-En Fan 2008-06-11 13:15:07 +00:00
parent f5ef9daa15
commit d30aa8e751
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=214658
2 changed files with 22 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= ncurses
PORTVERSION= ${RELEASE}
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}

View File

@ -0,0 +1,21 @@
--- ./ncurses/tinfo/lib_baudrate.c.orig 2002-01-20 07:07:53.000000000 +0800
+++ ./ncurses/tinfo/lib_baudrate.c 2008-06-11 21:12:53.000000000 +0800
@@ -39,6 +39,9 @@
#include <curses.priv.h>
#include <term.h> /* cur_term, pad_char */
#include <termcap.h> /* ospeed */
+#if defined(__FreeBSD__)
+#include <sys/param.h>
+#endif
/*
* These systems use similar header files, which define B1200 as 1200, etc.,
@@ -46,7 +49,7 @@
* of the indices up to B115200 fit nicely in a 'short', allowing us to retain
* ospeed's type for compatibility.
*/
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#if (defined(__FreeBSD__) && (__FreeBSD_version < 700000)) || defined(__NetBSD__) || defined(__OpenBSD__)
#undef B0
#undef B50
#undef B75