]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Fix py-tui.c build problem
authorTom Tromey <tromey@adacore.com>
Tue, 31 Mar 2020 20:07:04 +0000 (14:07 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 31 Mar 2020 20:09:36 +0000 (14:09 -0600)
commit6f29a53415003fd958978471801c072b2fcc8f80
treedef56d094c8a333876267edc8a4dad6a5432ed30
parentaf62665e1339d970ab8ea3e3260dbdbde0009c2d
Fix py-tui.c build problem

py-tui.c can fail to build if the ncurses development headers are not
installed, but if Python was built against ncurses.  In this case, the
Python headers will define HAVE_NCURSES_H, confusing gdb_curses.h.

This patch fixes the problem by moving this include inside
"#ifdef TUI".

gdb/ChangeLog
2020-03-31  Joel Jones  <joelkevinjones@gmail.com>

PR tui/25597:
* python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
gdb/ChangeLog
gdb/python/py-tui.c