summaryrefslogtreecommitdiffstats
path: root/ui/ncurses/nc-scr.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ncurses/nc-scr.h')
-rw-r--r--ui/ncurses/nc-scr.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/ui/ncurses/nc-scr.h b/ui/ncurses/nc-scr.h
index f18753a..a8aa314 100644
--- a/ui/ncurses/nc-scr.h
+++ b/ui/ncurses/nc-scr.h
@@ -20,7 +20,19 @@
#define _PB_NC_SCR_H
#include <linux/input.h> /* This must be included before ncurses.h */
-#include <ncurses.h>
+#if defined HAVE_NCURSESW_CURSES_H
+# include <ncursesw/curses.h>
+#elif defined HAVE_NCURSESW_H
+# include <ncursesw.h>
+#elif defined HAVE_NCURSES_CURSES_H
+# include <ncurses/curses.h>
+#elif defined HAVE_NCURSES_H
+# include <ncurses.h>
+#elif defined HAVE_CURSES_H
+# include <curses.h>
+#else
+# error "Curses header file not found."
+#endif
#ifdef DEBUG
#define DBG(fmt, args...) pb_log("DBG: " fmt, ## args)
OpenPOWER on IntegriCloud