$NetBSD: patch-ad,v 1.1.1.1 2009/01/18 17:39:37 wiz Exp $ --- zlibrary/core/src/unix/iconv/IConvEncodingConverter.cpp.orig 2009-01-11 01:44:33.000000000 +0100 +++ zlibrary/core/src/unix/iconv/IConvEncodingConverter.cpp @@ -89,7 +89,7 @@ iconvlabel: #ifdef DO_ICONV_CAST iconv(myIConverter, (const char**)&in, &inSize, &out, &outSize); #else // DO_ICONV_CAST - iconv(myIConverter, &in, &inSize, &out, &outSize); + iconv(myIConverter, (const char **)&in, &inSize, &out, &outSize); #endif // DO_ICONV_CAST if (inSize != 0) { if (myBuffer.empty()) { @@ -132,7 +132,7 @@ bool IConvEncodingConverter::fillTable(i #ifdef DO_ICONV_CAST iconv(myIConverter, (const char**)&in, &inSize, &out, &outSize); #else // DO_ICONV_CAST - iconv(myIConverter, &in, &inSize, &out, &outSize); + iconv(myIConverter, (const char **)&in, &inSize, &out, &outSize); #endif // DO_ICONV_CAST if (inSize == 0) { ZLUnicodeUtil::Ucs4Char ch;