aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tuiGeneralWin.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tui/tuiGeneralWin.c')
-rw-r--r--gdb/tui/tuiGeneralWin.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/tui/tuiGeneralWin.c b/gdb/tui/tuiGeneralWin.c
index 8ec54fe..b6d84e4 100644
--- a/gdb/tui/tuiGeneralWin.c
+++ b/gdb/tui/tuiGeneralWin.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 "tui.h"
#include "tuiData.h"