summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1996-07-15 21:58:10 +0000
committerKarl Heuer <kwzh@gnu.org>1996-07-15 21:58:10 +0000
commit4d34268b2dd0a1056a127293338d2acdf2ca56bc (patch)
treee7b5426d1a7909931f3bef8b7dfa834ce0ac6a24
parent2b2ca4f635a970346b7a7f18d82bb8d684978e08 (diff)
downloademacs-4d34268b2dd0a1056a127293338d2acdf2ca56bc.tar.gz
Use <config.h>.
[HAVE_TERMIOS_H]: Declare ospeed as speed_t. [USG]: Include <string.h>.
-rw-r--r--src/terminfo.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/terminfo.c b/src/terminfo.c
index 8ce87960f03..eef648b2157 100644
--- a/src/terminfo.c
+++ b/src/terminfo.c
@@ -22,8 +22,19 @@ Boston, MA 02111-1307, USA. */
so that we do not need to conditionalize the places in Emacs
that set them. */
+#include <config.h>
+
+#ifdef USG
+# include <string.h>
+#endif
+
char *UP, *BC, PC;
-short ospeed;
+#ifdef HAVE_TERMIOS_H
+# include <termios.h>
+ speed_t ospeed;
+#else
+ short ospeed;
+#endif
static buffer[512];