# HG changeset patch # User Dave Love # Date 961525143 0 # Node ID d8776351a5406daf1f89ce0e1e59b884ddf7b1d6 # Parent 3dec4cd5e36188c893892831397bbb73d4a8f888 [emacs] Test HAVE_FCNTL_H, not USG5. Include lisp.h and unistd.h. diff -r 3dec4cd5e361 -r d8776351a540 src/termcap.c --- a/src/termcap.c Tue Jun 20 18:17:05 2000 +0000 +++ b/src/termcap.c Tue Jun 20 18:19:03 2000 +0000 @@ -23,11 +23,15 @@ #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 @@ 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. */