Skip to content

Commit

Permalink
netbsd: Support building with libcurses
Browse files Browse the repository at this point in the history
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 htop-dev#660

Signed-off-by: Nia Alarie <nia@NetBSD.org>
  • Loading branch information
alarixnia authored and smalinux committed Jul 23, 2021
1 parent a268ecd commit 3909513
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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], [],
Expand Down

0 comments on commit 3909513

Please sign in to comment.