Messages in this thread | | | Date | Wed, 3 Apr 1996 14:03:25 -0500 | From | Michael Meissner <> | Subject | speed_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)
| |