lkml.org 
[lkml]   [1996]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: speed_t vs. termcap.h in Linux 1.3.79 and greater


On Wed, 3 Apr 1996, Michael Meissner wrote:
>
> 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

Mmm.. I _think_ that it should include <termios.h>, according to POSIX.
That's where speed_t should be (but I don't have the POSIX stuff here:
it's at the university). So the correct fix would be to just include that
in termcap.h, and then it should work with all kernels.

The #ifdef __linux__ looks a bit suspicious too. speed_t isn't any linux
specific thing, it's quite standard.

Linus


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