1 diff -dur wine-1.8.orig/configure.ac wine-1.8/configure.ac
2 --- wine-1.8.orig/configure.ac 2015-12-19 16:57:44.000000000 +0100
3 +++ wine-1.8/configure.ac 2016-01-09 18:16:41.889401226 +0100
12 @@ -1274,9 +1275,12 @@
14 dnl **** Check which curses lib to use ***
16 -if test "$ac_cv_header_ncurses_h" = "yes"
17 +if test "$ac_cv_header_ncurses_h" = "yes" || test "$ac_cv_header_ncurses_ncurses_h" = "yes"
19 WINE_CHECK_SONAME(ncurses,waddch,[CURSES_LIBS="-lncurses"],,,[[libncursesw\\{0,1\\}]])
20 + if test "x$ac_cv_lib_soname_ncurses" = "x"; then
21 + WINE_CHECK_SONAME(ncursesw,waddch,[CURSESLIBS="-lncursesw"])
23 elif test "$ac_cv_header_curses_h" = "yes"
25 WINE_CHECK_SONAME(curses,waddch,[CURSES_LIBS="-lcurses"])
27 LIBS="$LIBS $CURSES_LIBS"
28 AC_CHECK_FUNCS(mousemask)
30 -WINE_NOTICE_WITH(curses,[test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"],
31 - [lib(n)curses ${notice_platform}development files not found, curses won't be supported.])
32 +WINE_NOTICE_WITH(curses,[test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses$ac_cv_lib_soname_ncursesw" = "x"],
33 + [lib(n)curses(w) ${notice_platform}development files not found, curses won't be supported.])
35 dnl **** Check for SANE ****
36 if test "x$with_sane" != "xno"
37 diff -dur wine-1.8.orig/dlls/kernel32/term.c wine-1.8/dlls/kernel32/term.c
38 --- wine-1.8.orig/dlls/kernel32/term.c 2015-12-19 16:57:44.000000000 +0100
39 +++ wine-1.8/dlls/kernel32/term.c 2016-01-09 18:15:39.868921555 +0100
42 #elif defined(HAVE_CURSES_H)
44 +#elif defined(HAVE_NCURSES_NCURSES_H)
45 +# include <ncurses/ncurses.h>
47 /* avoid redefinition warnings */
51 #if defined(HAVE_CURSES_H) || defined(HAVE_NCURSES_H)
53 +#elif defined(HAVE_NCURSES_NCURSES_H)
54 +#include <ncurses/term.h>
60 #if defined(SONAME_LIBCURSES) || defined(SONAME_LIBNCURSES)
62 -#ifdef HAVE_NCURSES_H
63 +#ifdef HAVE_NCURSES_H || defined(HAVE_NCURSES_NCURSES_H)
64 # define CURSES_NAME "ncurses"
66 # define CURSES_NAME "curses"
67 diff -dur wine-1.8.orig/programs/wineconsole/curses.c wine-1.8/programs/wineconsole/curses.c
68 --- wine-1.8.orig/programs/wineconsole/curses.c 2015-12-19 16:57:44.000000000 +0100
69 +++ wine-1.8/programs/wineconsole/curses.c 2016-01-09 18:15:39.872254915 +0100
72 #elif defined(HAVE_CURSES_H)
74 +#elif defined(HAVE_NCURSES_NCURSES_H)
75 +# include <ncurses/ncurses.h>
77 /* avoid redefinition warnings */
81 #if defined(SONAME_LIBCURSES) || defined(SONAME_LIBNCURSES)
83 -#ifdef HAVE_NCURSES_H
84 +#if defined(HAVE_NCURSES_H) || defined(HAVE_NCURSES_NCURSES_H)
85 # define CURSES_NAME "ncurses"
87 # define CURSES_NAME "curses"