changeset 29804:d8776351a540

[emacs] Test HAVE_FCNTL_H, not USG5. Include lisp.h and unistd.h.
author Dave Love <fx@gnu.org>
date Tue, 20 Jun 2000 18:19:03 +0000
parents 3dec4cd5e361
children 0df8151400b9
files src/termcap.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 <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 @@
   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.  */