Skip to content

Commit e906ef7

Browse files
committed
fixup! Add bindings for iconv calls
Link with iconv on macOS and iOS.
1 parent ac6ec1c commit e906ef7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/unix/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,12 @@ cfg_if! {
344344
#[link(name = "m")]
345345
extern {}
346346
} else if #[cfg(any(target_os = "macos",
347-
target_os = "ios",
348-
target_os = "android",
347+
target_os = "ios"))] {
348+
#[link(name = "c")]
349+
#[link(name = "m")]
350+
#[link(name = "iconv")]
351+
extern {}
352+
} else if #[cfg(any(target_os = "android",
349353
target_os = "openbsd"))] {
350354
#[link(name = "c")]
351355
#[link(name = "m")]

0 commit comments

Comments
 (0)