Mercurial > emacs
comparison src/terminfo.c @ 19023:f7a3c16c49cb
[HAVE_LIBNCURSES]: Declare ospeed as short, unless NCURSES_OSPEED_T.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 28 Jul 1997 17:04:18 +0000 |
parents | a431fbda7f23 |
children | fa9ff387d260 |
comparison
equal
deleted
inserted
replaced
19022:904dcdbb8576 | 19023:f7a3c16c49cb |
---|---|
24 so that we do not need to conditionalize the places in Emacs | 24 so that we do not need to conditionalize the places in Emacs |
25 that set them. */ | 25 that set them. */ |
26 | 26 |
27 char *UP, *BC, PC; | 27 char *UP, *BC, PC; |
28 | 28 |
29 #if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T) | |
30 short ospeed; | |
31 #else | |
29 #if defined (HAVE_TERMIOS_H) && defined (LINUX) | 32 #if defined (HAVE_TERMIOS_H) && defined (LINUX) |
30 #include <termios.h> | 33 #include <termios.h> |
31 /* HJL's version of libc is said to need this on the Alpha. | 34 /* HJL's version of libc is said to need this on the Alpha. |
32 On the other hand, DEC OSF1 on the Alpha needs ospeed to be a short. */ | 35 On the other hand, DEC OSF1 on the Alpha needs ospeed to be a short. */ |
33 speed_t ospeed; | 36 speed_t ospeed; |
34 #else | 37 #else |
35 short ospeed; | 38 short ospeed; |
39 #endif | |
36 #endif | 40 #endif |
37 | 41 |
38 static buffer[512]; | 42 static buffer[512]; |
39 | 43 |
40 /* Interface to curses/terminfo library. | 44 /* Interface to curses/terminfo library. |