diff options
-rw-r--r-- | src/cm.h | 5 | ||||
-rw-r--r-- | src/sysdep.c | 7 |
2 files changed, 11 insertions, 1 deletions
@@ -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 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[] = }; #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; |