summaryrefslogtreecommitdiff
path: root/src/terminfo.c
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2000-05-26 15:52:33 +0000
committerGerd Moellmann <gerd@gnu.org>2000-05-26 15:52:33 +0000
commitf0d21750932435a810749ddfa04f798dfd5636dc (patch)
tree098eadce822ff54d5808de644ea889c393ad70fa /src/terminfo.c
parentab810648cf62ee4aa8e79c262b8171abfce38a23 (diff)
downloademacs-f0d21750932435a810749ddfa04f798dfd5636dc.tar.gz
(ospeed) [HAVE_SPEED_T]: Declare as `extern speed_t'.
Diffstat (limited to 'src/terminfo.c')
-rw-r--r--src/terminfo.c5
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. */
char *UP, *BC, PC;
+#ifdef HAVE_SPEED_T
+#include <termios.h>
+extern speed_t ospeed;
+#else
#if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T)
short ospeed;
#else
@@ -39,6 +43,7 @@ speed_t ospeed;
short ospeed;
#endif
#endif
+#endif
/* Interface to curses/terminfo library.
Turns out that all of the terminfo-level routines look