aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-02-28 15:02:35 +0000
committerMark Kettenis <kettenis@gnu.org>2004-02-28 15:02:35 +0000
commit9671aeef937ebeafc0a44d2224a0cd76f3e9bfee (patch)
treeed7f56e45f3b9dda4653edfb3ae8b1831d2be2ff /gdb/tui/tui.c
parent72fd54a9667e569dcbeebe2e6f025255b62ec675 (diff)
downloadgdb-9671aeef937ebeafc0a44d2224a0cd76f3e9bfee.zip
gdb-9671aeef937ebeafc0a44d2224a0cd76f3e9bfee.tar.gz
gdb-9671aeef937ebeafc0a44d2224a0cd76f3e9bfee.tar.bz2
* tui/tui.c: Include <readline/readline.h> instead of
"readline/readline.h". Include it after <term.h> and "gdb_curses.h".
Diffstat (limited to 'gdb/tui/tui.c')
-rw-r--r--gdb/tui/tui.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index 2c12621..d2186a2 100644
--- a/gdb/tui/tui.c
+++ b/gdb/tui/tui.c
@@ -34,7 +34,6 @@
#include "tui/tui-win.h"
#include "tui/tui-winsource.h"
#include "tui/tui-windata.h"
-#include "readline/readline.h"
#include "target.h"
#include "frame.h"
#include "breakpoint.h"
@@ -57,6 +56,11 @@
#include "gdb_curses.h"
+/* This redefines CTRL if it is not already defined, so it must come
+ after terminal state releated include files like <term.h> and
+ "gdb_ncurses.h". */
+#include <readline/readline.h>
+
/* Tells whether the TUI is active or not. */
int tui_active = 0;
static int tui_finish_init = 1;