summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Mazur2012-10-08 18:18:22 +0200
committerMike Frysinger2016-04-03 23:59:15 -0400
commitf755430d79171b2391ad9bf18da036720ab83b70 (patch)
tree0a135d3502c682edf35b8c1646eaf6b7bf7fb04b
parent8c3f943410ccfd79bb24eaa816dc8d57200d7a4c (diff)
downloadbusybox-f755430d79171b2391ad9bf18da036720ab83b70.zip
busybox-f755430d79171b2391ad9bf18da036720ab83b70.tar.gz
menuconfig: fix extended colors ncurses support
The ncurses library allows for extended colors. The support for extended colors support depends on wide-character support. ncurses headers enable extended colors (NCURSES_EXT_COLORS) only when wide-character support is enabled (NCURSES_WIDECHAR). The "make menuconfig" uses wide-character ncursesw library, which can be compiled with wide-character support, but does not define NCURSES_WIDECHAR and it's using headers without wide-character (and extended colors) support. This fixes problems with colors on systems with enabled extended colors (like PLD Linux). Without this patch "make menuconfig" is hard to use. Signed-off-by: Krzysztof Mazur <krzysiek@podlesie.net> Signed-off-by: Michal Marek <mmarek@suse.cz> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--scripts/kconfig/lxdialog/check-lxdialog.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh
index c8e8a71..8078813 100644
--- a/scripts/kconfig/lxdialog/check-lxdialog.sh
+++ b/scripts/kconfig/lxdialog/check-lxdialog.sh
@@ -21,6 +21,7 @@ ccflags()
{
if [ -f /usr/include/ncursesw/curses.h ]; then
echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncursesw/curses.h>"'
+ echo ' -DNCURSES_WIDECHAR=1'
elif [ -f /usr/include/ncurses/ncurses.h ]; then
echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"'
elif [ -f /usr/include/ncurses/curses.h ]; then