aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1996-07-15 21:53:24 +0000
committerKarl Heuer1996-07-15 21:53:24 +0000
commit9f2655f5f967b70e8d9ded9274387bd07c88f356 (patch)
tree61353ab7063b2afee9706cdb801e58bad890cc6c /src
parentc1fc797324cf3a7ae95c92b9248df081f2f4dd88 (diff)
downloademacs-9f2655f5f967b70e8d9ded9274387bd07c88f356.tar.gz
emacs-9f2655f5f967b70e8d9ded9274387bd07c88f356.zip
[HAVE_TERMIOS_H]: Declare ospeed as speed_t.
Diffstat (limited to 'src')
-rw-r--r--src/cm.h5
-rw-r--r--src/sysdep.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/src/cm.h b/src/cm.h
index 80e945b4607..f5c8157f5e7 100644
--- a/src/cm.h
+++ b/src/cm.h
@@ -100,7 +100,12 @@ struct cm
100 100
101extern struct cm Wcm; /* Terminal capabilities */ 101extern struct cm Wcm; /* Terminal capabilities */
102extern char PC; /* Pad character */ 102extern char PC; /* Pad character */
103#ifdef HAVE_TERMIOS_H
104# include <termios.h>
105extern speed_t ospeed;
106#else
103extern short ospeed; /* Output speed (from sg_ospeed) */ 107extern short ospeed; /* Output speed (from sg_ospeed) */
108#endif
104 109
105/* Shorthand */ 110/* Shorthand */
106#ifndef NoCMShortHand 111#ifndef NoCMShortHand
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[] =
220 }; 220 };
221#endif 221#endif
222 222
223extern short ospeed; 223#ifdef HAVE_TERMIOS_H
224# include <termios.h>
225 extern speed_t ospeed;
226#else
227 extern short ospeed;
228#endif
224 229
225/* The file descriptor for Emacs's input terminal. 230/* The file descriptor for Emacs's input terminal.
226 Under Unix, this is normally zero except when using X; 231 Under Unix, this is normally zero except when using X;