Mercurial > emacs
comparison src/sysdep.c @ 29252:c8f4d06938b9
(ospeed) [HAVE_SPEED_T]: Declare as `extern speed_t'.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 26 May 2000 15:52:33 +0000 |
parents | 0398ec3316c5 |
children | 2ead157165c4 |
comparison
equal
deleted
inserted
replaced
29251:320eb8477280 | 29252:c8f4d06938b9 |
---|---|
226 0, 50, 75, 110, 135, 150, 200, 300, 600, 1200, | 226 0, 50, 75, 110, 135, 150, 200, 300, 600, 1200, |
227 1800, 2400, 4800, 9600, 19200, 38400 | 227 1800, 2400, 4800, 9600, 19200, 38400 |
228 }; | 228 }; |
229 #endif | 229 #endif |
230 | 230 |
231 #ifdef HAVE_SPEED_T | |
232 #include <termios.h> | |
233 extern speed_t ospeed; | |
234 #else | |
231 #if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T) | 235 #if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T) |
232 extern short ospeed; | 236 extern short ospeed; |
233 #else | 237 #else |
234 #if defined (HAVE_TERMIOS_H) && defined (LINUX) | 238 #if defined (HAVE_TERMIOS_H) && defined (LINUX) |
235 #include <termios.h> | 239 #include <termios.h> |
236 /* HJL's version of libc is said to need this on the Alpha. | 240 /* HJL's version of libc is said to need this on the Alpha. |
237 On the other hand, DEC OSF1 on the Alpha needs ospeed to be a short. */ | 241 On the other hand, DEC OSF1 on the Alpha needs ospeed to be a short. */ |
238 extern speed_t ospeed; | 242 extern speed_t ospeed; |
239 #else | 243 #else |
240 extern short ospeed; | 244 extern short ospeed; |
245 #endif | |
241 #endif | 246 #endif |
242 #endif | 247 #endif |
243 | 248 |
244 /* The file descriptor for Emacs's input terminal. | 249 /* The file descriptor for Emacs's input terminal. |
245 Under Unix, this is normally zero except when using X; | 250 Under Unix, this is normally zero except when using X; |