diff options
| author | Dave Love | 2000-06-20 18:19:03 +0000 |
|---|---|---|
| committer | Dave Love | 2000-06-20 18:19:03 +0000 |
| commit | e608805f43dff8a516e106fc3d9349e7276d81ec (patch) | |
| tree | 90c56d07ac311b400c3976c69baf8faae6bf054d | |
| parent | 427ec0820cd7c396bc2fddcc1cc2cf1b0b482944 (diff) | |
| download | emacs-e608805f43dff8a516e106fc3d9349e7276d81ec.tar.gz emacs-e608805f43dff8a516e106fc3d9349e7276d81ec.zip | |
[emacs] Test HAVE_FCNTL_H, not USG5. Include lisp.h and unistd.h.
| -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. */ |