docs/buildroot.html: fix typo
[avatt.git] / package / procps / procps-wchar.patch
blob7915229946f2b1aef784ded39557c08bfb166156
1 --- procps-3.2.7/proc/escape.c 2005-01-06 07:50:26.000000000 +1100
2 +++ procps-3.2.7.fixed/proc/escape.c 2008-09-09 11:55:57.000000000 +1000
3 @@ -15,7 +15,7 @@
4 #include "escape.h"
5 #include "readproc.h"
7 -#if (__GNU_LIBRARY__ >= 6)
8 +#if (__GNU_LIBRARY__ >= 6) && (!defined(__UCLIBC__) || defined(__UCLIBC_HAS_WCHAR__))
9 # include <wchar.h>
10 # include <wctype.h>
11 # include <stdlib.h> /* MB_CUR_MAX */
12 @@ -23,7 +23,7 @@
13 # include <langinfo.h>
14 #endif
16 -#if (__GNU_LIBRARY__ >= 6)
17 +#if (__GNU_LIBRARY__ >= 6) && (!defined(__UCLIBC__) || defined(__UCLIBC_HAS_WCHAR__))
18 static int escape_str_utf8(char *restrict dst, const char *restrict src, int bufsize, int *maxcells){
19 int my_cells = 0;
20 int my_bytes = 0;
21 @@ -123,7 +123,7 @@
22 "********************************"
23 "********************************";
25 -#if (__GNU_LIBRARY__ >= 6)
26 +#if (__GNU_LIBRARY__ >= 6) && (!defined(__UCLIBC__) || defined(__UCLIBC_HAS_WCHAR__))
27 static int utf_init=0;
29 if(utf_init==0){