diff -dur wine-1.8.orig/configure.ac wine-1.8/configure.ac --- wine-1.8.orig/configure.ac 2015-12-19 16:57:44.000000000 +0100 +++ wine-1.8/configure.ac 2016-01-09 18:16:41.889401226 +0100 @@ -450,6 +450,7 @@ machine/sysarch.h \ mntent.h \ ncurses.h \ + ncurses/ncurses.h \ netdb.h \ netinet/in.h \ netinet/in_systm.h \ @@ -1274,9 +1275,12 @@ dnl **** Check which curses lib to use *** CURSES_LIBS="" -if test "$ac_cv_header_ncurses_h" = "yes" +if test "$ac_cv_header_ncurses_h" = "yes" || test "$ac_cv_header_ncurses_ncurses_h" = "yes" then WINE_CHECK_SONAME(ncurses,waddch,[CURSES_LIBS="-lncurses"],,,[[libncursesw\\{0,1\\}]]) + if test "x$ac_cv_lib_soname_ncurses" = "x"; then + WINE_CHECK_SONAME(ncursesw,waddch,[CURSESLIBS="-lncursesw"]) + fi elif test "$ac_cv_header_curses_h" = "yes" then WINE_CHECK_SONAME(curses,waddch,[CURSES_LIBS="-lcurses"]) @@ -1285,8 +1289,8 @@ LIBS="$LIBS $CURSES_LIBS" AC_CHECK_FUNCS(mousemask) LIBS="$ac_save_LIBS" -WINE_NOTICE_WITH(curses,[test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"], - [lib(n)curses ${notice_platform}development files not found, curses won't be supported.]) +WINE_NOTICE_WITH(curses,[test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses$ac_cv_lib_soname_ncursesw" = "x"], + [lib(n)curses(w) ${notice_platform}development files not found, curses won't be supported.]) dnl **** Check for SANE **** if test "x$with_sane" != "xno" diff -dur wine-1.8.orig/dlls/kernel32/term.c wine-1.8/dlls/kernel32/term.c --- wine-1.8.orig/dlls/kernel32/term.c 2015-12-19 16:57:44.000000000 +0100 +++ wine-1.8/dlls/kernel32/term.c 2016-01-09 18:15:39.868921555 +0100 @@ -27,6 +27,8 @@ # include #elif defined(HAVE_CURSES_H) # include +#elif defined(HAVE_NCURSES_NCURSES_H) +# include #endif /* avoid redefinition warnings */ #undef KEY_EVENT @@ -34,6 +36,8 @@ #if defined(HAVE_CURSES_H) || defined(HAVE_NCURSES_H) #include +#elif defined(HAVE_NCURSES_NCURSES_H) +#include #endif #include @@ -148,7 +152,7 @@ #if defined(SONAME_LIBCURSES) || defined(SONAME_LIBNCURSES) -#ifdef HAVE_NCURSES_H +#ifdef HAVE_NCURSES_H || defined(HAVE_NCURSES_NCURSES_H) # define CURSES_NAME "ncurses" #else # define CURSES_NAME "curses" diff -dur wine-1.8.orig/programs/wineconsole/curses.c wine-1.8/programs/wineconsole/curses.c --- wine-1.8.orig/programs/wineconsole/curses.c 2015-12-19 16:57:44.000000000 +0100 +++ wine-1.8/programs/wineconsole/curses.c 2016-01-09 18:15:39.872254915 +0100 @@ -40,6 +40,8 @@ # include #elif defined(HAVE_CURSES_H) # include +#elif defined(HAVE_NCURSES_NCURSES_H) +# include #endif /* avoid redefinition warnings */ #undef KEY_EVENT @@ -64,7 +66,7 @@ #if defined(SONAME_LIBCURSES) || defined(SONAME_LIBNCURSES) -#ifdef HAVE_NCURSES_H +#if defined(HAVE_NCURSES_H) || defined(HAVE_NCURSES_NCURSES_H) # define CURSES_NAME "ncurses" #else # define CURSES_NAME "curses"