diff options
| author | Gerd Moellmann | 2000-05-26 15:52:33 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-05-26 15:52:33 +0000 |
| commit | f0d21750932435a810749ddfa04f798dfd5636dc (patch) | |
| tree | 098eadce822ff54d5808de644ea889c393ad70fa /src/terminfo.c | |
| parent | ab810648cf62ee4aa8e79c262b8171abfce38a23 (diff) | |
| download | emacs-f0d21750932435a810749ddfa04f798dfd5636dc.tar.gz emacs-f0d21750932435a810749ddfa04f798dfd5636dc.zip | |
(ospeed) [HAVE_SPEED_T]: Declare as `extern speed_t'.
Diffstat (limited to 'src/terminfo.c')
| -rw-r--r-- | src/terminfo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/terminfo.c b/src/terminfo.c index 3d021edce44..bfb8b62674a 100644 --- a/src/terminfo.c +++ b/src/terminfo.c | |||
| @@ -27,6 +27,10 @@ Boston, MA 02111-1307, USA. */ | |||
| 27 | 27 | ||
| 28 | char *UP, *BC, PC; | 28 | char *UP, *BC, PC; |
| 29 | 29 | ||
| 30 | #ifdef HAVE_SPEED_T | ||
| 31 | #include <termios.h> | ||
| 32 | extern speed_t ospeed; | ||
| 33 | #else | ||
| 30 | #if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T) | 34 | #if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T) |
| 31 | short ospeed; | 35 | short ospeed; |
| 32 | #else | 36 | #else |
| @@ -39,6 +43,7 @@ speed_t ospeed; | |||
| 39 | short ospeed; | 43 | short ospeed; |
| 40 | #endif | 44 | #endif |
| 41 | #endif | 45 | #endif |
| 46 | #endif | ||
| 42 | 47 | ||
| 43 | /* Interface to curses/terminfo library. | 48 | /* Interface to curses/terminfo library. |
| 44 | Turns out that all of the terminfo-level routines look | 49 | Turns out that all of the terminfo-level routines look |