diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/termcap.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/termcap.c b/src/termcap.c index c447ce8b4b0..472005f1393 100644 --- a/src/termcap.c +++ b/src/termcap.c | |||
| @@ -23,11 +23,15 @@ Boston, MA 02111-1307, USA. */ | |||
| 23 | 23 | ||
| 24 | #ifdef emacs | 24 | #ifdef emacs |
| 25 | 25 | ||
| 26 | #include <lisp.h> /* xmalloc is here */ | ||
| 26 | /* Get the O_* definitions for open et al. */ | 27 | /* Get the O_* definitions for open et al. */ |
| 27 | #include <sys/file.h> | 28 | #include <sys/file.h> |
| 28 | #ifdef USG5 | 29 | #ifdef HAVE_FCNTL_H |
| 29 | #include <fcntl.h> | 30 | #include <fcntl.h> |
| 30 | #endif | 31 | #endif |
| 32 | #ifdef HAVE_UNISTD_H | ||
| 33 | #include <unistd.h> | ||
| 34 | #endif | ||
| 31 | 35 | ||
| 32 | #else /* not emacs */ | 36 | #else /* not emacs */ |
| 33 | 37 | ||
| @@ -313,7 +317,7 @@ tputs (str, nlines, outfun) | |||
| 313 | register int speed; | 317 | register int speed; |
| 314 | 318 | ||
| 315 | #ifdef emacs | 319 | #ifdef emacs |
| 316 | extern baud_rate; | 320 | extern int baud_rate; |
| 317 | speed = baud_rate; | 321 | speed = baud_rate; |
| 318 | /* For quite high speeds, convert to the smaller | 322 | /* For quite high speeds, convert to the smaller |
| 319 | units to avoid overflow. */ | 323 | units to avoid overflow. */ |