diff options
| author | Karl Heuer | 1996-07-15 21:53:24 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-07-15 21:53:24 +0000 |
| commit | 9f2655f5f967b70e8d9ded9274387bd07c88f356 (patch) | |
| tree | 61353ab7063b2afee9706cdb801e58bad890cc6c /src | |
| parent | c1fc797324cf3a7ae95c92b9248df081f2f4dd88 (diff) | |
| download | emacs-9f2655f5f967b70e8d9ded9274387bd07c88f356.tar.gz emacs-9f2655f5f967b70e8d9ded9274387bd07c88f356.zip | |
[HAVE_TERMIOS_H]: Declare ospeed as speed_t.
Diffstat (limited to 'src')
| -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 | |||
| 100 | 100 | ||
| 101 | extern struct cm Wcm; /* Terminal capabilities */ | 101 | extern struct cm Wcm; /* Terminal capabilities */ |
| 102 | extern char PC; /* Pad character */ | 102 | extern char PC; /* Pad character */ |
| 103 | #ifdef HAVE_TERMIOS_H | ||
| 104 | # include <termios.h> | ||
| 105 | extern speed_t ospeed; | ||
| 106 | #else | ||
| 103 | extern short ospeed; /* Output speed (from sg_ospeed) */ | 107 | extern short ospeed; /* Output speed (from sg_ospeed) */ |
| 108 | #endif | ||
| 104 | 109 | ||
| 105 | /* Shorthand */ | 110 | /* Shorthand */ |
| 106 | #ifndef NoCMShortHand | 111 | #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[] = | |||
| 220 | }; | 220 | }; |
| 221 | #endif | 221 | #endif |
| 222 | 222 | ||
| 223 | extern short ospeed; | 223 | #ifdef HAVE_TERMIOS_H |
| 224 | # include <termios.h> | ||
| 225 | extern speed_t ospeed; | ||
| 226 | #else | ||
| 227 | extern short ospeed; | ||
| 228 | #endif | ||
| 224 | 229 | ||
| 225 | /* The file descriptor for Emacs's input terminal. | 230 | /* The file descriptor for Emacs's input terminal. |
| 226 | Under Unix, this is normally zero except when using X; | 231 | Under Unix, this is normally zero except when using X; |