From e608805f43dff8a516e106fc3d9349e7276d81ec Mon Sep 17 00:00:00 2001 From: Dave Love Date: Tue, 20 Jun 2000 18:19:03 +0000 Subject: [PATCH] [emacs] Test HAVE_FCNTL_H, not USG5. Include lisp.h and unistd.h. --- src/termcap.c | 8 ++++++-- 1 file 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 /* xmalloc is here */ /* Get the O_* definitions for open et al. */ #include -#ifdef USG5 +#ifdef HAVE_FCNTL_H #include #endif +#ifdef HAVE_UNISTD_H +#include +#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. */ -- 2.39.2