# HG changeset patch # Parent 32840d58190409875fc9d8590fcb97eafaaeeca3 Fix tui compilation with Solaris libcurses: clear define (PR tui/21482) diff --git a/gdb/gdb_curses.h b/gdb/gdb_curses.h --- a/gdb/gdb_curses.h +++ b/gdb/gdb_curses.h @@ -32,6 +32,13 @@ #undef KEY_EVENT #endif +/* On Solaris and probably other SysVr4 derived systems, we need to define + NOMACROS so the native doesn't define clear which interferes + with the clear member of class string_file. ncurses potentially has a + similar problem and fix. */ +#define NOMACROS +#define NCURSES_NOMACROS + #if defined (HAVE_NCURSES_NCURSES_H) #include #elif defined (HAVE_NCURSES_H)