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 | |
| parent | ab810648cf62ee4aa8e79c262b8171abfce38a23 (diff) | |
| download | emacs-f0d21750932435a810749ddfa04f798dfd5636dc.tar.gz emacs-f0d21750932435a810749ddfa04f798dfd5636dc.zip | |
(ospeed) [HAVE_SPEED_T]: Declare as `extern speed_t'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 5 | ||||
| -rw-r--r-- | src/terminfo.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 36c204ff11a..e5e46f77cbc 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -228,6 +228,10 @@ static int baud_convert[] = | |||
| 228 | }; | 228 | }; |
| 229 | #endif | 229 | #endif |
| 230 | 230 | ||
| 231 | #ifdef HAVE_SPEED_T | ||
| 232 | #include <termios.h> | ||
| 233 | extern speed_t ospeed; | ||
| 234 | #else | ||
| 231 | #if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T) | 235 | #if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T) |
| 232 | extern short ospeed; | 236 | extern short ospeed; |
| 233 | #else | 237 | #else |
| @@ -240,6 +244,7 @@ extern speed_t ospeed; | |||
| 240 | extern short ospeed; | 244 | extern short ospeed; |
| 241 | #endif | 245 | #endif |
| 242 | #endif | 246 | #endif |
| 247 | #endif | ||
| 243 | 248 | ||
| 244 | /* The file descriptor for Emacs's input terminal. | 249 | /* The file descriptor for Emacs's input terminal. |
| 245 | Under Unix, this is normally zero except when using X; | 250 | Under Unix, this is normally zero except when using X; |
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 |