1 |
On 12-07-2007 20:45:10 +0200, Elias Pipping wrote: |
2 |
> Apparently the issue has been fixed in cvs. |
3 |
|
4 |
Ok, I'd like to add this patch. Can you attach it or send me it's url? |
5 |
|
6 |
|
7 |
> --- portable.cpp~ 2007-07-12 20:41:27 +0200 |
8 |
> +++ portable.cpp 2007-05-06 14:30:18 +0200 |
9 |
> @@ -373,16 +373,16 @@ |
10 |
> size_t portable_iconv (void *cd, const char** inbuf, size_t *inbytesleft, |
11 |
> char** outbuf, size_t |
12 |
> *outbytesleft) |
13 |
> { |
14 |
> -#if (defined(_LIBICONV_VERSION) && (_LIBICONV_VERSION==0x0109)) |
15 |
> +#if ((defined(_LIBICONV_VERSION) && (_LIBICONV_VERSION>=0x0109)) || |
16 |
> defined(_OS_SOLARIS_)) |
17 |
> #define CASTNEEDED(x) (x) |
18 |
> #else |
19 |
> #define CASTNEEDED(x) (char **)(x) |
20 |
> #endif |
21 |
> - return iconv(cd,CASTNEEDED(inbuf),inbytesleft,outbuf,outbytesleft); |
22 |
> + return |
23 |
> iconv((iconv_t)cd,CASTNEEDED(inbuf),inbytesleft,outbuf,outbytesleft); |
24 |
> } |
25 |
> |
26 |
> int portable_iconv_close (void *cd) |
27 |
> { |
28 |
> - return iconv_close(cd); |
29 |
> + return iconv_close((iconv_t)cd); |
30 |
> } |
31 |
> |
32 |
> |
33 |
> -- |
34 |
> gentoo-alt@g.o mailing list |
35 |
> |
36 |
|
37 |
-- |
38 |
Fabian Groffen |
39 |
Gentoo on a different level |
40 |
|
41 |
-- |
42 |
gentoo-alt@g.o mailing list |