diff options
author | Tom Tromey <tromey@adacore.com> | 2020-03-31 14:07:04 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-03-31 14:09:36 -0600 |
commit | 6f29a53415003fd958978471801c072b2fcc8f80 (patch) | |
tree | def56d094c8a333876267edc8a4dad6a5432ed30 /config.sub | |
parent | af62665e1339d970ab8ea3e3260dbdbde0009c2d (diff) | |
download | gdb-6f29a53415003fd958978471801c072b2fcc8f80.zip gdb-6f29a53415003fd958978471801c072b2fcc8f80.tar.gz gdb-6f29a53415003fd958978471801c072b2fcc8f80.tar.bz2 |
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.
Diffstat (limited to 'config.sub')
0 files changed, 0 insertions, 0 deletions