summaryrefslogtreecommitdiff
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1996-07-15 21:53:24 +0000
committerKarl Heuer <kwzh@gnu.org>1996-07-15 21:53:24 +0000
commit9f2655f5f967b70e8d9ded9274387bd07c88f356 (patch)
tree61353ab7063b2afee9706cdb801e58bad890cc6c /src/sysdep.c
parentc1fc797324cf3a7ae95c92b9248df081f2f4dd88 (diff)
downloademacs-9f2655f5f967b70e8d9ded9274387bd07c88f356.tar.gz
[HAVE_TERMIOS_H]: Declare ospeed as speed_t.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 5baf95c92b5..cf6850c20d1 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -220,7 +220,12 @@ static int baud_convert[] =
};
#endif
-extern short ospeed;
+#ifdef HAVE_TERMIOS_H
+# include <termios.h>
+ extern speed_t ospeed;
+#else
+ extern short ospeed;
+#endif
/* The file descriptor for Emacs's input terminal.
Under Unix, this is normally zero except when using X;