mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-31 11:13:50 +00:00
[HAVE_LIBNCURSES]: Declare ospeed as short, unless NCURSES_OSPEED_T.
This commit is contained in:
parent
4ee1cf9f78
commit
ba5971b37a
4
src/cm.h
4
src/cm.h
@ -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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user