Git init
[external/ncurses.git] / packaging / 05-emdebian-wchar.patch
1 05-emdebian-wchar.diff by Neil Williams <codehelp@debian.org>
2
3 Ensure <wchar.h> is available for make_keys via gcc when cross-building
4 the rest of the package (otherwise it picks up the config.h for the
5 cross-build).
6
7 ---
8  ncurses/tinfo/comp_hash.c |    1 +
9  ncurses/tinfo/make_keys.c |    1 +
10  2 files changed, 2 insertions(+)
11
12 --- a/ncurses/tinfo/comp_hash.c
13 +++ b/ncurses/tinfo/comp_hash.c
14 @@ -39,6 +39,7 @@
15   */
16  
17  #define USE_TERMLIB 1
18 +#include <wchar.h>
19  #include <curses.priv.h>
20  
21  #include <tic.h>
22 --- a/ncurses/tinfo/make_keys.c
23 +++ b/ncurses/tinfo/make_keys.c
24 @@ -37,6 +37,7 @@
25   */
26  
27  #define USE_TERMLIB 1
28 +#include <wchar.h>
29  #include <curses.priv.h>
30  
31  MODULE_ID("$Id: make_keys.c,v 1.15 2008/11/16 00:19:59 juergen Exp $")