]> git.pld-linux.org Git - packages/wine.git/blame - wine-ncurses.patch
- up to 0.9.33
[packages/wine.git] / wine-ncurses.patch
CommitLineData
83204ca1
KK
1--- wine-0.9.28/configure.ac.orig 2006-12-22 17:17:47.000000000 +0100
2+++ wine-0.9.28/configure.ac 2006-12-24 03:10:15.504363300 +0100
3@@ -194,6 +194,7 @@
55cd00fd 4 machine/soundcard.h \
5 mntent.h \
6 ncurses.h \
7+ ncurses/ncurses.h \
8 netdb.h \
9 netinet/in.h \
10 netinet/in_systm.h \
83204ca1
KK
11@@ -519,7 +520,7 @@
12
13 dnl **** Check which curses lib to use ***
55cd00fd 14 CURSESLIBS=""
83204ca1
KK
15-if test "$ac_cv_header_ncurses_h" = "yes"
16+if test "$ac_cv_header_ncurses_h" = "yes" || test "$ac_cv_header_ncurses_ncurses_h" = "yes"
55cd00fd 17 then
83204ca1
KK
18 AC_CHECK_LIB(ncurses,waddch,[CURSESLIBS="-lncurses"])
19 elif test "$ac_cv_header_curses_h" = "yes"
55cd00fd 20--- wine-0.9.13/programs/wineconsole/curses.c.old 2006-05-19 12:01:34.492841168 +0200
21+++ wine-0.9.13/programs/wineconsole/curses.c 2006-05-19 12:04:32.524776200 +0200
22@@ -37,6 +37,8 @@
23 #include <stdlib.h>
24 #ifdef HAVE_NCURSES_H
25 # include <ncurses.h>
26+#elif defined(HAVE_NCURSES_NCURSES_H)
27+# include <ncurses/ncurses.h>
28 #elif defined(HAVE_CURSES_H)
29 # include <curses.h>
30 #endif
31@@ -57,9 +59,9 @@
32
33 #define PRIVATE(data) ((struct inner_data_curse*)((data)->private))
34
35-#if defined(HAVE_CURSES_H) || defined(HAVE_NCURSES_H)
36+#if defined(HAVE_CURSES_H) || defined(HAVE_NCURSES_H) || defined(HAVE_NCURSES_NCURSES_H)
37
38-#ifdef HAVE_NCURSES_H
39+#if defined(HAVE_NCURSES_H) || defined(HAVE_NCURSES_NCURSES_H)
40 # define CURSES_NAME "ncurses"
41 #else
42 # define CURSES_NAME "curses"
43@@ -115,7 +117,7 @@
44
45 static BOOL WCCURSES_bind_libcurses(void)
46 {
47-#ifdef HAVE_NCURSES_H
48+#if defined(HAVE_NCURSES_H) || defined(HAVE_NCURSES_NCURSES_H)
72d53569 49 static const char ncname[] = SONAME_LIBNCURSES;
55cd00fd 50 #else
72d53569 51 static const char ncname[] = SONAME_LIBCURSES;
This page took 0.069395 seconds and 4 git commands to generate.