aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-26 04:11:34 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-26 04:11:34 +0000
commit2894793a7b11779557cd7d50f5eec63acf3c46fd (patch)
treeb72673027253a8929b6c872b38dae0a18dd3e090 /gdb/tui
parentd60622826d14374d5b18ca343c4aae6627e58609 (diff)
downloadgdb-2894793a7b11779557cd7d50f5eec63acf3c46fd.zip
gdb-2894793a7b11779557cd7d50f5eec63acf3c46fd.tar.gz
gdb-2894793a7b11779557cd7d50f5eec63acf3c46fd.tar.bz2
Configure TUI to use <ncurses.h> when available.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/ChangeLog5
-rw-r--r--gdb/tui/tui.c1
-rw-r--r--gdb/tui/tui.h4
-rw-r--r--gdb/tui/tuiGeneralWin.c1
4 files changed, 9 insertions, 2 deletions
diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog
index 1cc09ce..d7e8629 100644
--- a/gdb/tui/ChangeLog
+++ b/gdb/tui/ChangeLog
@@ -1,3 +1,8 @@
+Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * tui.h: Include <ncurses.h> when available.
+ * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
+
Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
* Makefile.in: Delete.
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index 1e5593c..a560fdf 100644
--- a/gdb/tui/tui.c
+++ b/gdb/tui/tui.c
@@ -7,7 +7,6 @@
#include <stdlib.h>
#include <ctype.h>
#include <malloc.h>
-#include <curses.h>
#ifdef HAVE_TERM_H
#include <term.h>
#endif
diff --git a/gdb/tui/tui.h b/gdb/tui/tui.h
index b80b0e9..179f231 100644
--- a/gdb/tui/tui.h
+++ b/gdb/tui/tui.h
@@ -2,7 +2,11 @@
#ifndef TUI_H
#define TUI_H
+#if defined (HAVE_NCURSES_H)
+#include <ncurses.h>
+#elif defined (HAVE_CURSES_H)
#include <curses.h>
+#endif
#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
diff --git a/gdb/tui/tuiGeneralWin.c b/gdb/tui/tuiGeneralWin.c
index b1caf69..382d7b3 100644
--- a/gdb/tui/tuiGeneralWin.c
+++ b/gdb/tui/tuiGeneralWin.c
@@ -3,7 +3,6 @@
** This module supports general window behavior
*/
-#include <curses.h>
#include "defs.h"
#include "tui.h"
#include "tuiData.h"