[emacs] Test HAVE_FCNTL_H, not USG5. Include lisp.h and unistd.h.

This commit is contained in:
Dave Love 2000-06-20 18:19:03 +00:00
parent 427ec0820c
commit e608805f43

View file

@ -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. */