[HAVE_TERMIOS_H]: Declare ospeed as speed_t.
authorKarl Heuer <kwzh@gnu.org>
Mon, 15 Jul 1996 21:53:24 +0000 (21:53 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 15 Jul 1996 21:53:24 +0000 (21:53 +0000)
src/cm.h
src/sysdep.c

index 80e945b..f5c8157 100644 (file)
--- a/src/cm.h
+++ b/src/cm.h
@@ -100,7 +100,12 @@ struct cm
 
 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
index 5baf95c..cf6850c 100644 (file)
@@ -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;