mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
[emacs] Test HAVE_FCNTL_H, not USG5. Include lisp.h and unistd.h.
This commit is contained in:
parent
427ec0820c
commit
e608805f43
1 changed files with 6 additions and 2 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue