Merge pull request #11793 from brad0/openbsd_iconv_build_fix

Fix build of iconv code on OpenBSD
This commit is contained in:
Mai 2023-04-29 17:08:36 -04:00 committed by GitHub
commit d95a85212f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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