summaryrefslogtreecommitdiff
path: root/src/cm.h
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-07-07 06:42:35 +0000
committerRichard M. Stallman <rms@gnu.org>1997-07-07 06:42:35 +0000
commit0dc57298fdc0760d8c69dcbcb940145f77022f5d (patch)
tree2b79cedc885eccc91f5aa063a86929506eb60f02 /src/cm.h
parentd7d265f47125420cdbd62c083e1dc69e290a111d (diff)
downloademacs-0dc57298fdc0760d8c69dcbcb940145f77022f5d.tar.gz
(ospeed): Declare as short unless HAVE_TERMIOS_H and LINUX.
Diffstat (limited to 'src/cm.h')
-rw-r--r--src/cm.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cm.h b/src/cm.h
index 652b61eb216..5e0caa1fa5e 100644
--- a/src/cm.h
+++ b/src/cm.h
@@ -100,9 +100,11 @@ struct cm
extern struct cm Wcm; /* Terminal capabilities */
extern char PC; /* Pad character */
-#ifdef HAVE_TERMIOS_H
+
+#if defined (HAVE_TERMIOS_H) || defined (LINUX)
#include <termios.h>
-/* HJL's version of libc is said to need this on the Alpha. */
+/* HJL's version of libc is said to need this on the Alpha.
+ On the other hand, DEC OSF1 on the Alpha needs ospeed to be a short. */
extern speed_t ospeed;
#else
extern short ospeed; /* Output speed (from sg_ospeed) */