Date: Wed, 11 Jun 2008 14:24:13 +0200 (CEST) From: Ed Schouten <ed@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/124483: [Patch] devel/ncurses: don't use <sys/ttydev.h> Message-ID: <20080611122413.6B40C1CC1A@palm.hoeg.nl> Resent-Message-ID: <200806111230.m5BCU7h0031174@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080611122413.6B40C1CC1A>