ports/124483: [Patch] devel/ncurses: don't use <sys/ttydev.h>
Ed Schouten
ed at FreeBSD.org
Wed Jun 11 12:30:08 UTC 2008
>Number: 124483
>Category: ports
>Synopsis: [Patch] devel/ncurses: don't use <sys/ttydev.h>
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jun 11 12:30:07 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Ed Schouten
>Release: FreeBSD 6.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD palm.hoeg.nl 6.3-STABLE FreeBSD 6.3-STABLE #0: Wed Jun 4 08:56:01 CEST 2008 ed at palm.hoeg.nl:/usr/obj/usr/src/sys/PALM i386
>Description:
The devel/ncurses port is base don ncurses 5.6. It still includes
<sys/ttydev.h>. We must not include this file, as it is about to go
away.
>How-To-Repeat:
>Fix:
Place the following patch in the `files' directory. This is a backport
from ncurses-devel and ncurses in the base system.
--- ncurses/tinfo/lib_baudrate.c
+++ 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
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list