Solaris build fixes: pick the right curses more of the time

This commit is contained in:
David Adam
2014-12-07 16:41:15 +08:00
parent 381404c4f4
commit a8059c5962
12 changed files with 91 additions and 31 deletions

View File

@@ -32,8 +32,13 @@
#if HAVE_NCURSES_H
#include <ncurses.h>
#elif HAVE_NCURSES_CURSES_H
#include <ncurses/curses.h>
#else
// Solaris curses defines lots of unneeded macros which conflict with C++
#define NOMACROS
#include <curses.h>
#undef NOMACROS
#endif
#if HAVE_TERM_H