summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorYue Wang <yuleopen@gmail.com>2008-12-07 06:40:39 +0000
committerYue Wang <yuleopen@gmail.com>2008-12-07 06:40:39 +0000
commitf6d180898954f248e4f5465ce48e77ec0dd515d4 (patch)
treea465ccbc41e613952119128f31a1ba72ab733232 /Build
parentf2c8ced28410826974046d20423c8a46bac5e6c0 (diff)
fix ncurses compilation problem on FreeBSD-CURRENT
git-svn-id: svn://tug.org/texlive/trunk@11541 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/libs/ncurses/ncurses/tinfo/lib_baudrate.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Build/source/libs/ncurses/ncurses/tinfo/lib_baudrate.c b/Build/source/libs/ncurses/ncurses/tinfo/lib_baudrate.c
index 52389241436..1a203fe54aa 100644
--- a/Build/source/libs/ncurses/ncurses/tinfo/lib_baudrate.c
+++ b/Build/source/libs/ncurses/ncurses/tinfo/lib_baudrate.c
@@ -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