diff options
Diffstat (limited to 'www/htmlcxx/patches/patch-html_CharsetConverter.cc')
-rw-r--r-- | www/htmlcxx/patches/patch-html_CharsetConverter.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/www/htmlcxx/patches/patch-html_CharsetConverter.cc b/www/htmlcxx/patches/patch-html_CharsetConverter.cc new file mode 100644 index 00000000000..72dc5fa8a12 --- /dev/null +++ b/www/htmlcxx/patches/patch-html_CharsetConverter.cc @@ -0,0 +1,15 @@ +$NetBSD: patch-html_CharsetConverter.cc,v 1.1 2014/02/16 22:58:51 wiz Exp $ + +Fix build on NetBSD. + +--- html/CharsetConverter.cc.orig 2011-05-15 17:32:10.000000000 +0000 ++++ html/CharsetConverter.cc +@@ -37,7 +37,7 @@ string CharsetConverter::convert(const s + + size_t ret; + while (1) { +- ret = iconv(mIconvDescriptor, const_cast<char**>(&inbuf), &inbytesleft, &outbuf, &outbytesleft); ++ ret = iconv(mIconvDescriptor, (const char**)(&inbuf), &inbytesleft, &outbuf, &outbytesleft); + if (ret == 0) break; + if (ret == (size_t)-1 && errno == E2BIG) return string(); + |