Added configure check for getbkgd and define HAVE_GETBKGD.
diff --git a/console/ncurses.c b/console/ncurses.c
index 8a97a74..84a4f21 100644
--- a/console/ncurses.c
+++ b/console/ncurses.c
@@ -57,7 +57,9 @@
driver.getCharacterAtCursor = NCURSES_GetCharacterAtCursor;
driver.clearScreen = NCURSES_ClearScreen;
driver.allocColor = NCURSES_AllocColor;
+#ifdef HAVE_GETBKGD
driver.setBackgroundColor = NCURSES_SetBackgroundColor;
+#endif
#ifdef HAVE_RESIZETERM
driver.notifyResizeScreen = NCURSES_NotifyResizeScreen;
#endif /* HAVE_RESIZETERM */
@@ -213,6 +215,7 @@
wbkgd(stdscr, COLOR_PAIR(pair));
}
+#ifdef HAVE_GETBKGD
void NCURSES_GetBackgroundColor(int *fg, int *bg)
{
chtype background;
@@ -227,6 +230,7 @@
*fg = sfg;
*bg = sbg;
}
+#endif /* HAVE_GETBKGD */
#ifdef HAVE_RESIZETERM