summaryrefslogtreecommitdiff
path: root/src/terminfo.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-09-04 15:12:18 +0000
committerRichard M. Stallman <rms@gnu.org>1996-09-04 15:12:18 +0000
commit2bb95e9ef2e897bf40981c994cc453a67ab68036 (patch)
tree99d840d2c0b520457301a6c026ac86f6be2585f4 /src/terminfo.c
parent4165c22db22db081235ddad8810cce782b177c15 (diff)
downloademacs-2bb95e9ef2e897bf40981c994cc453a67ab68036.tar.gz
Include config.h.
[HAVE_TERMIOS_H]: Include termios.h. (ospeed) [HAVE_TERMIOS_H]: Use ospeed_t.
Diffstat (limited to 'src/terminfo.c')
-rw-r--r--src/terminfo.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/terminfo.c b/src/terminfo.c
index 8ce87960f03..ab6ab9e4ccb 100644
--- a/src/terminfo.c
+++ b/src/terminfo.c
@@ -18,12 +18,20 @@ along with GNU Emacs; see the file COPYING. If not, write to
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];