1 Fix building against libiconv
4 https://github.com/kyak/openwrt-packages/blob/master/fbterm/patches/001-iconv.patch
6 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
10 @@ -119,10 +119,10 @@ void IoPipe::setCodec(const s8 *up, cons
11 if (!strcasecmp(up, down)) return;
13 mCodecRead = iconv_open(up, down);
14 - if (mCodecRead == (void*)-1) mCodecRead = 0;
15 + if (mCodecRead == (iconv_t)(-1)) mCodecRead = 0;
17 mCodecWrite = iconv_open(down, up);
18 - if (mCodecWrite == (void*)-1) mCodecWrite = 0;
19 + if (mCodecWrite == (iconv_t)(-1)) mCodecWrite = 0;
22 #define BUF_SIZE 10240
33 @@ -47,7 +48,7 @@ private:
34 void writeIo(s8 *buf, u32 len);
37 - void *mCodecRead, *mCodecWrite;
38 + iconv_t mCodecRead, mCodecWrite;
39 s8 mBufRead[16], mBufWrite[16];
40 u32 mBufLenRead, mBufLenWrite;