Commit ba5971b3 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

[HAVE_LIBNCURSES]: Declare ospeed as short, unless NCURSES_OSPEED_T.

parent 4ee1cf9f
......@@ -101,6 +101,9 @@ struct cm
extern struct cm Wcm; /* Terminal capabilities */
extern char PC; /* Pad character */
#if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T)
extern short ospeed;
#else
#if defined (HAVE_TERMIOS_H) && defined (LINUX)
#include <termios.h>
/* HJL's version of libc is said to need this on the Alpha.
......@@ -109,6 +112,7 @@ extern speed_t ospeed;
#else
extern short ospeed; /* Output speed (from sg_ospeed) */
#endif
#endif
/* Shorthand */
#ifndef NoCMShortHand
......
......@@ -226,6 +226,9 @@ static int baud_convert[] =
};
#endif
#if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T)
extern short ospeed;
#else
#if defined (HAVE_TERMIOS_H) && defined (LINUX)
#include <termios.h>
/* HJL's version of libc is said to need this on the Alpha.
......@@ -234,6 +237,7 @@ extern speed_t ospeed;
#else
extern short ospeed;
#endif
#endif
/* The file descriptor for Emacs's input terminal.
Under Unix, this is normally zero except when using X;
......
......@@ -26,6 +26,9 @@ Boston, MA 02111-1307, USA. */
char *UP, *BC, PC;
#if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T)
short ospeed;
#else
#if defined (HAVE_TERMIOS_H) && defined (LINUX)
#include <termios.h>
/* HJL's version of libc is said to need this on the Alpha.
......@@ -34,6 +37,7 @@ speed_t ospeed;
#else
short ospeed;
#endif
#endif
static buffer[512];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment