2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+ PR tui/21482
+ * gdb_curses.h (NOMACROS): Define.
+ (NCURSES_NOMACROS): Define.
+
+2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ PR tui/21482
* tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
arg to char *.
* tui/tui-wingeneral.c (box_win): Likewise.
#undef KEY_EVENT
#endif
+/* On Solaris and probably other SysVr4 derived systems, we need to define
+ NOMACROS so the native <curses.h> 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 <ncurses/ncurses.h>
#elif defined (HAVE_NCURSES_H)