diff options
author | Dave Love <fx@gnu.org> | 2000-06-20 18:19:03 +0000 |
---|---|---|
committer | Dave Love <fx@gnu.org> | 2000-06-20 18:19:03 +0000 |
commit | e608805f43dff8a516e106fc3d9349e7276d81ec (patch) | |
tree | 90c56d07ac311b400c3976c69baf8faae6bf054d /src/termcap.c | |
parent | 427ec0820cd7c396bc2fddcc1cc2cf1b0b482944 (diff) | |
download | emacs-e608805f43dff8a516e106fc3d9349e7276d81ec.tar.gz |
[emacs] Test HAVE_FCNTL_H, not USG5. Include lisp.h and unistd.h.
Diffstat (limited to 'src/termcap.c')
-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. */ #ifdef emacs +#include <lisp.h> /* xmalloc is here */ /* Get the O_* definitions for open et al. */ #include <sys/file.h> -#ifdef USG5 +#ifdef HAVE_FCNTL_H #include <fcntl.h> #endif +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif #else /* not emacs */ @@ -313,7 +317,7 @@ tputs (str, nlines, outfun) register int speed; #ifdef emacs - extern baud_rate; + extern int baud_rate; speed = baud_rate; /* For quite high speeds, convert to the smaller units to avoid overflow. */ |