aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tuiCommand.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tui/tuiCommand.c')
-rw-r--r--gdb/tui/tuiCommand.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/tui/tuiCommand.c b/gdb/tui/tuiCommand.c
index 0f5a66d..fd868e2 100644
--- a/gdb/tui/tuiCommand.c
+++ b/gdb/tui/tuiCommand.c
@@ -19,6 +19,16 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+/* If we need <curses.h>, we must include it before we get "bfd.h". */
+#include "config.h"
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#else
+#ifdef HAVE_CURSES_H
+#include <curses.h>
+#endif
+#endif
+
#include "defs.h"
#include <ctype.h>
#include "tui.h"