1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 18:41:25 -08:00

(ospeed) [HAVE_SPEED_T]: Declare as `extern speed_t'.

This commit is contained in:
Gerd Moellmann 2000-05-26 15:52:33 +00:00
parent ab810648cf
commit f0d2175093
2 changed files with 10 additions and 0 deletions

View file

@ -228,6 +228,10 @@ static int baud_convert[] =
};
#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 speed_t ospeed;
extern short ospeed;
#endif
#endif
#endif
/* The file descriptor for Emacs's input terminal.
Under Unix, this is normally zero except when using X;

View file

@ -27,6 +27,10 @@ Boston, MA 02111-1307, USA. */
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 @@ speed_t ospeed;
short ospeed;
#endif
#endif
#endif
/* Interface to curses/terminfo library.
Turns out that all of the terminfo-level routines look