Merge pull request #11793 from brad0/openbsd_iconv_build_fix
Fix build of iconv code on OpenBSD
This commit is contained in:
commit
d95a85212f
|
@ -547,7 +547,7 @@ std::string CodeTo(const char* tocode, const char* fromcode, std::basic_string_v
|
||||||
while (src_bytes != 0)
|
while (src_bytes != 0)
|
||||||
{
|
{
|
||||||
size_t const iconv_result =
|
size_t const iconv_result =
|
||||||
#if defined(__OpenBSD__) || defined(__NetBSD__)
|
#if defined(__NetBSD__)
|
||||||
iconv(conv_desc, reinterpret_cast<const char**>(&src_buffer), &src_bytes, &dst_buffer,
|
iconv(conv_desc, reinterpret_cast<const char**>(&src_buffer), &src_bytes, &dst_buffer,
|
||||||
&dst_bytes);
|
&dst_bytes);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue