Skip to content

Commit 8d7a53c

Browse files
committed
Try a different cfg-if branch
1 parent ddddc18 commit 8d7a53c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/unix/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,6 @@ pub const ATF_PERM: ::c_int = 0x04;
293293
pub const ATF_PUBL: ::c_int = 0x08;
294294
pub const ATF_USETRAILERS: ::c_int = 0x10;
295295

296-
#[link(name = "iconv")]
297-
extern {}
298-
299296
cfg_if! {
300297
if #[cfg(target_os = "l4re")] {
301298
// required libraries for L4Re are linked externally, ATM
@@ -350,12 +347,12 @@ cfg_if! {
350347
target_os = "ios"))] {
351348
#[link(name = "c")]
352349
#[link(name = "m")]
353-
#[link(name = "iconv")]
354350
extern {}
355351
} else if #[cfg(any(target_os = "android",
356352
target_os = "openbsd"))] {
357353
#[link(name = "c")]
358354
#[link(name = "m")]
355+
#[link(name = "iconv")]
359356
extern {}
360357
} else if #[cfg(target_os = "haiku")] {
361358
#[link(name = "root")]

0 commit comments

Comments
 (0)