netbsd: Support building with libcurses

Right now Unicode support must be disabled, because htop peeks
into the ncurses cchar_t struct with Unicode enabled. NetBSD's cchar_t
has different contents.

Partially fixes #660

Signed-off-by: Nia Alarie <nia@NetBSD.org>
main
nia 5 years ago committed by BenBE
parent 4865e643ad
commit 09c7e3e136
  1. 5
      configure.ac

@ -329,8 +329,9 @@ else
HTOP_CHECK_SCRIPT([ncurses], [wnoutrefresh], [HAVE_LIBNCURSES], [ncurses5-config],
HTOP_CHECK_LIB([ncurses6], [doupdate], [HAVE_LIBNCURSES],
HTOP_CHECK_LIB([ncurses], [doupdate], [HAVE_LIBNCURSES],
AC_MSG_ERROR([can not find required library libncurses])
))))
HTOP_CHECK_LIB([curses], [doupdate], [HAVE_LIBNCURSES],
AC_MSG_ERROR([can not find required curses/ncurses library])
)))))
AC_CHECK_HEADERS([curses.h], [],
[AC_CHECK_HEADERS([ncurses/curses.h], [],

Loading…
Cancel
Save