summaryrefslogtreecommitdiff
path: root/src/cm.h
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-07-28 17:04:18 +0000
committerRichard M. Stallman <rms@gnu.org>1997-07-28 17:04:18 +0000
commitba5971b37a41900f8074a4e6430b88dd46826380 (patch)
tree03e80fd3c50858b3d1397bd8545aedaa40bd8979 /src/cm.h
parent4ee1cf9f78850921eaed7a6b1289769d6ef7dc48 (diff)
downloademacs-ba5971b37a41900f8074a4e6430b88dd46826380.tar.gz
[HAVE_LIBNCURSES]: Declare ospeed as short, unless NCURSES_OSPEED_T.
Diffstat (limited to 'src/cm.h')
-rw-r--r--src/cm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cm.h b/src/cm.h
index 4567c4474a9..fc3d183f5f9 100644
--- a/src/cm.h
+++ b/src/cm.h
@@ -101,6 +101,9 @@ struct cm
extern struct cm Wcm; /* Terminal capabilities */
extern char PC; /* Pad character */
+#if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T)
+extern short ospeed;
+#else
#if defined (HAVE_TERMIOS_H) && defined (LINUX)
#include <termios.h>
/* HJL's version of libc is said to need this on the Alpha.
@@ -109,6 +112,7 @@ extern speed_t ospeed;
#else
extern short ospeed; /* Output speed (from sg_ospeed) */
#endif
+#endif
/* Shorthand */
#ifndef NoCMShortHand