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>
This commit is contained in:
nia 2021-07-13 17:53:47 +02:00 committed by BenBE
parent 4865e643ad
commit 09c7e3e136
1 changed files with 3 additions and 2 deletions

View File

@ -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], [],