aboutsummaryrefslogtreecommitdiff
path: root/devel/ncurses
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2008-06-11 13:15:07 +0000
committerRong-En Fan <rafan@FreeBSD.org>2008-06-11 13:15:07 +0000
commitd30aa8e75196e58cda26ac880dac05eabc8fbc38 (patch)
treeb4f5e6ab4ff29d92374aeb3cb7c078eb18fc1f6a /devel/ncurses
parentf5ef9daa1586c9a18eb45e4aded30dbcce7641dd (diff)
downloadports-d30aa8e75196e58cda26ac880dac05eabc8fbc38.tar.gz
ports-d30aa8e75196e58cda26ac880dac05eabc8fbc38.zip
Notes
Diffstat (limited to 'devel/ncurses')
-rw-r--r--devel/ncurses/Makefile2
-rw-r--r--devel/ncurses/files/patch-ncurses__tinfo__lib_baudrate.c21
2 files changed, 22 insertions, 1 deletions
diff --git a/devel/ncurses/Makefile b/devel/ncurses/Makefile
index 1b286a241b9c..956ab37d6d2e 100644
--- a/devel/ncurses/Makefile
+++ b/devel/ncurses/Makefile
@@ -7,7 +7,7 @@
PORTNAME= ncurses
PORTVERSION= ${RELEASE}
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/devel/ncurses/files/patch-ncurses__tinfo__lib_baudrate.c b/devel/ncurses/files/patch-ncurses__tinfo__lib_baudrate.c
new file mode 100644
index 000000000000..9248c2ea0bce
--- /dev/null
+++ b/devel/ncurses/files/patch-ncurses__tinfo__lib_baudrate.c
@@ -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