diff options
author | Tom Rini <trini@kernel.crashing.org> | 2004-10-31 04:16:03 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2004-10-31 04:16:03 +0200 |
commit | eae9d152fb366c9ea8f70a80a16ce5537d440895 (patch) | |
tree | ab73dbbc2d4a3e8154470ec1ac3bd0a85754b9c3 /scripts | |
parent | d9a9dc691e053bb9a386546f1aaf19d406842282 (diff) | |
download | history-eae9d152fb366c9ea8f70a80a16ce5537d440895.tar.gz |
kconfig: Fix menuconfig on Solaris
The following two bits are needed to get it working (not as colorful as on
Linux, but it functions) for me. First, unless CURS_MACROS is defined,
scroll(x) doesn't get expanded to wscrl(x, 1). I did some quick
grepping on Cygwin and Linux (debian/unstable) and didn't see
CURS_MACROS show up anywhere else, but to be safe I put it inside of
__sun__. Next this uses libcurses instead of libncurses otherwise we
get a bunch of undefined refs to w32attrset, w32addch, acs32map and few
more.
Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lxdialog/Makefile | 4 | ||||
-rw-r--r-- | scripts/lxdialog/dialog.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/scripts/lxdialog/Makefile b/scripts/lxdialog/Makefile index cdc4024a8830ee..a45a13fb26ed7a 100644 --- a/scripts/lxdialog/Makefile +++ b/scripts/lxdialog/Makefile @@ -1,5 +1,9 @@ HOST_EXTRACFLAGS := -DLOCALE +ifeq ($(shell uname),SunOS) +HOST_LOADLIBES := -lcurses +else HOST_LOADLIBES := -lncurses +endif ifeq (/usr/include/ncurses/ncurses.h, $(wildcard /usr/include/ncurses/ncurses.h)) HOST_EXTRACFLAGS += -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" diff --git a/scripts/lxdialog/dialog.h b/scripts/lxdialog/dialog.h index 0e30d00d0b25ca..c571548daa8200 100644 --- a/scripts/lxdialog/dialog.h +++ b/scripts/lxdialog/dialog.h @@ -26,6 +26,9 @@ #include <stdlib.h> #include <string.h> +#ifdef __sun__ +#define CURS_MACROS +#endif #include CURSES_LOC /* |