Mercurial > emacs
changeset 29252:c8f4d06938b9
(ospeed) [HAVE_SPEED_T]: Declare as `extern speed_t'.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 26 May 2000 15:52:33 +0000 |
parents | 320eb8477280 |
children | 809933264ea6 |
files | src/sysdep.c src/terminfo.c |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sysdep.c Fri May 26 15:52:01 2000 +0000 +++ b/src/sysdep.c Fri May 26 15:52:33 2000 +0000 @@ -228,6 +228,10 @@ }; #endif +#ifdef HAVE_SPEED_T +#include <termios.h> +extern speed_t ospeed; +#else #if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T) extern short ospeed; #else @@ -240,6 +244,7 @@ extern short ospeed; #endif #endif +#endif /* The file descriptor for Emacs's input terminal. Under Unix, this is normally zero except when using X;
--- a/src/terminfo.c Fri May 26 15:52:01 2000 +0000 +++ b/src/terminfo.c Fri May 26 15:52:33 2000 +0000 @@ -27,6 +27,10 @@ char *UP, *BC, PC; +#ifdef HAVE_SPEED_T +#include <termios.h> +extern speed_t ospeed; +#else #if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T) short ospeed; #else @@ -39,6 +43,7 @@ short ospeed; #endif #endif +#endif /* Interface to curses/terminfo library. Turns out that all of the terminfo-level routines look