From c9bbb12c2e96e5efc042ddd445df70513ffe485e Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Tue, 25 Apr 2023 01:22:05 -0400 Subject: [PATCH] Fix build of iconv code on OpenBSD --- Source/Core/Common/StringUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp index 113d7b781a..af81e2b84b 100644 --- a/Source/Core/Common/StringUtil.cpp +++ b/Source/Core/Common/StringUtil.cpp @@ -547,7 +547,7 @@ std::string CodeTo(const char* tocode, const char* fromcode, std::basic_string_v while (src_bytes != 0) { size_t const iconv_result = -#if defined(__OpenBSD__) || defined(__NetBSD__) +#if defined(__NetBSD__) iconv(conv_desc, reinterpret_cast(&src_buffer), &src_bytes, &dst_buffer, &dst_bytes); #else