summaryrefslogtreecommitdiff
path: root/src/sysdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c5
1 files changed, 5 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[] =
};
#endif
+#ifdef HAVE_SPEED_T
+#include <termios.h>
+extern speed_t ospeed;
+#else
#if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T)
extern short ospeed;
#else
@@ -240,6 +244,7 @@ extern speed_t ospeed;
extern short ospeed;
#endif
#endif
+#endif
/* The file descriptor for Emacs's input terminal.
Under Unix, this is normally zero except when using X;