changeset 16118:4580dcf4e0d1

Include config.h. [HAVE_TERMIOS_H]: Include termios.h. (ospeed) [HAVE_TERMIOS_H]: Use ospeed_t.
author Richard M. Stallman <rms@gnu.org>
date Wed, 04 Sep 1996 15:12:18 +0000
parents 16c866efd8b5
children 8b44e50334a8
files src/terminfo.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/terminfo.c	Wed Sep 04 15:10:42 1996 +0000
+++ b/src/terminfo.c	Wed Sep 04 15:12:18 1996 +0000
@@ -18,12 +18,20 @@
 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
+#include <config.h>
+
 /* Define these variables that serve as global parameters to termcap,
    so that we do not need to conditionalize the places in Emacs
    that set them.  */
 
 char *UP, *BC, PC;
+
+#ifdef HAVE_TERMIOS_H
+#include <termios.h>
+speed_t ospeed;
+#else
 short ospeed;
+#endif
 
 static buffer[512];