summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@src.gnome.org>2002-08-01 00:03:17 +0000
committerNalin Dahyabhai <nalin@src.gnome.org>2002-08-01 00:03:17 +0000
commit8515801d31a4279150f085ab2f22a7b177fa474e (patch)
tree1189ec8abc264110a6d86110dac2a27af6a42e81
parent94d562a1102ac1ecf9a6b23f16eeac725e1c3f63 (diff)
Include <termios.h> if available, per patch from Hidetoshi Tajima. Include
* src/pty.c: Include <termios.h> if available, per patch from Hidetoshi Tajima. * src/trie.c: Include missing <wchar.h>, spotted by Hidetoshi Tajima.
-rw-r--r--ChangeLog3
-rw-r--r--configure.in1
-rw-r--r--src/pty.c3
-rw-r--r--src/trie.c1
4 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8bcf2fb..236be28 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
2002-07-31 nalin
+ * src/pty.c: Include <termios.h> if available, per patch from Hidetoshi
+ Tajima.
+ * src/trie.c: Include missing <wchar.h>, spotted by Hidetoshi Tajima.
* src/vte.c: Initialize new lines created in insert_lines() to the
current default attributes like al() does.
2002-07-30 nalin
diff --git a/configure.in b/configure.in
index f3da9b2..ad78948 100644
--- a/configure.in
+++ b/configure.in
@@ -35,6 +35,7 @@ AC_DEFINE(PANGO_DISABLE_DEPRECATED,1,[Disable deprecated pango features.])
AC_DEFINE(VTE_UTF8_BPC,6,[Maximum number of bytes used per UTF-8 character.])
AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE",[Package name.])
AC_CHECK_FUNCS(getpt grantpt unlockpt ptsname ptsname_r)
+AC_CHECK_HEADERS(termios.h)
# Double-check that the GTK libraries pulled in Xft functionality, then use
# the GTK CFLAGS to find the Xft headers.
diff --git a/src/pty.c b/src/pty.c
index 8f8ab95..1a5caff 100644
--- a/src/pty.c
+++ b/src/pty.c
@@ -28,6 +28,9 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#ifdef HAVE_TERMIOS_H
+#include <termios.h>
+#endif
#include <glib.h>
#include "debug.h"
#include "pty.h"
diff --git a/src/trie.c b/src/trie.c
index ec510ed..8e1c2f8 100644
--- a/src/trie.c
+++ b/src/trie.c
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <wchar.h>
#include <glib.h>
#include <glib-object.h>
#include "debug.h"