Skip to content

Commit

Permalink
Try a different cfg-if branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Minoru committed Jan 17, 2021
1 parent ddddc18 commit 8d7a53c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,6 @@ pub const ATF_PERM: ::c_int = 0x04;
pub const ATF_PUBL: ::c_int = 0x08;
pub const ATF_USETRAILERS: ::c_int = 0x10;

#[link(name = "iconv")]
extern {}

cfg_if! {
if #[cfg(target_os = "l4re")] {
// required libraries for L4Re are linked externally, ATM
Expand Down Expand Up @@ -350,12 +347,12 @@ cfg_if! {
target_os = "ios"))] {
#[link(name = "c")]
#[link(name = "m")]
#[link(name = "iconv")]
extern {}
} else if #[cfg(any(target_os = "android",
target_os = "openbsd"))] {
#[link(name = "c")]
#[link(name = "m")]
#[link(name = "iconv")]
extern {}
} else if #[cfg(target_os = "haiku")] {
#[link(name = "root")]
Expand Down

0 comments on commit 8d7a53c

Please sign in to comment.