--- rust/libnewsboat/src/utils.rs 2025-12-28 13:04:17 +++ rust/libnewsboat/src/utils.rs 2025-12-28 13:03:28 @@ -816,12 +816,15 @@ // On FreeBSD, link with GNU libiconv; the iconv implementation in libc doesn't support //TRANSLIT // and WCHAR_T. This is also why we change the symbol names from "iconv" to "libiconv" below. #[cfg_attr(target_os = "freebsd", link(name = "iconv"))] +#[cfg_attr(target_os = "macos", link(name = "iconv"))] #[cfg_attr(target_os = "openbsd", link(name = "iconv"))] unsafe extern "C" { #[cfg_attr(target_os = "freebsd", link_name = "libiconv_open")] + #[cfg_attr(target_os = "macos", link_name = "libiconv_open")] #[cfg_attr(target_os = "openbsd", link_name = "libiconv_open")] pub fn iconv_open(tocode: *const c_char, fromcode: *const c_char) -> iconv_t; #[cfg_attr(target_os = "freebsd", link_name = "libiconv")] + #[cfg_attr(target_os = "macos", link_name = "libiconv")] #[cfg_attr(target_os = "openbsd", link_name = "libiconv")] pub fn iconv( cd: iconv_t, @@ -831,6 +834,7 @@ outbytesleft: *mut size_t, ) -> size_t; #[cfg_attr(target_os = "freebsd", link_name = "libiconv_close")] + #[cfg_attr(target_os = "macos", link_name = "libiconv_close")] #[cfg_attr(target_os = "openbsd", link_name = "libiconv_close")] pub fn iconv_close(cd: iconv_t) -> c_int; }