Skip to content

Commit

Permalink
Pull extra dep
Browse files Browse the repository at this point in the history
  • Loading branch information
Minoru committed Jan 18, 2021
1 parent 8ce1841 commit 3553014
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/unix/mod.rs
Expand Up @@ -297,8 +297,11 @@ cfg_if! {
if #[cfg(target_os = "l4re")] {
// required libraries for L4Re are linked externally, ATM
} else if #[cfg(feature = "std")] {
// cargo build, don't pull in anything extra as the libstd dep
// already pulls in all libs.
// cargo build. Most libraries are already pulled in by libstd dep
#[cfg_attr(
any(target_os = "macos", target_os = "ios"),
link(name = "iconv"))]
extern {}
} else if #[cfg(all(target_os = "linux",
target_env = "gnu",
feature = "rustc-dep-of-std"))] {
Expand Down Expand Up @@ -1544,20 +1547,17 @@ extern "C" {
len: ::off_t,
) -> ::c_int;

#[cfg_attr(target_os = "macos", link(name = "iconv"))]
pub fn iconv_open(
tocode: *const ::c_char,
fromcode: *const ::c_char,
) -> iconv_t;
#[cfg_attr(target_os = "macos", link(name = "iconv"))]
pub fn iconv(
cd: iconv_t,
inbuf: *mut *mut ::c_char,
inbytesleft: *mut ::size_t,
outbuf: *mut *mut ::c_char,
outbytesleft: *mut ::size_t,
) -> ::size_t;
#[cfg_attr(target_os = "macos", link(name = "iconv"))]
pub fn iconv_close(cd: iconv_t) -> ::c_int;
}

Expand Down

0 comments on commit 3553014

Please sign in to comment.