changeset 15691:f912ad203841

[HAVE_TERMIOS_H]: Declare ospeed as speed_t.
author Karl Heuer <kwzh@gnu.org>
date Mon, 15 Jul 1996 21:53:24 +0000
parents d50b8a2e6fe5
children ebef42357c5d
files src/cm.h src/sysdep.c
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cm.h	Mon Jul 15 21:51:25 1996 +0000
+++ b/src/cm.h	Mon Jul 15 21:53:24 1996 +0000
@@ -100,7 +100,12 @@
 
 extern struct cm Wcm;		/* Terminal capabilities */
 extern char PC;			/* Pad character */
+#ifdef HAVE_TERMIOS_H
+# include <termios.h>
+extern speed_t ospeed;
+#else
 extern short ospeed;		/* Output speed (from sg_ospeed) */
+#endif
 
 /* Shorthand */
 #ifndef NoCMShortHand
--- a/src/sysdep.c	Mon Jul 15 21:51:25 1996 +0000
+++ b/src/sysdep.c	Mon Jul 15 21:53:24 1996 +0000
@@ -220,7 +220,12 @@
   };
 #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;