lkml.org 
[lkml]   [1996]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectspeed_t vs. termcap.h in Linux 1.3.79 and greater
I rev'ed up to Linux 1.3.79 and then 1.3.81, and found that readline
won't build. I then rev'ed up to the latest beta libc (5.3.8) and
termcap (2.0.6), and the error was still there. The reason is it
includes termcap.h, which has the following lines:

#include <features.h>
#include <sys/types.h>

extern char PC;
extern char *UP;
extern char *BC;

#ifdef __linux__
extern speed_t ospeed;
#else
extern short ospeed;
#endif

In Linux 1.3.77, speed_t is defined in sys/types.h. In 1.3.79 and
beyond, speed_t has been moved to asm/termbits.h. For a quick hack, I
just added an include of <asm/termbits.h> right after the #ifdef
__linux__, but it might be nice if some sort of change made its way
into the offical sources.

--
Michael Meissner, Cygnus Support (East Coast)
Suite 105, 48 Grove Street, Somerville, MA 02144, USA
meissner@cygnus.com, 617-629-3016 (office), 617-629-3010 (fax)


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.058 / U:0.972 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site