Skip to content

Commit

Permalink
Skip res_init test on macOS/iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo committed May 3, 2017
1 parent fcf5fc0 commit be7e45f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,16 @@ fn main() {
// it's in a header file?
"endpwent" if android => true,

// Apparently it exists, but isn't defined in a header:
// Apparently res_init exists on Android, but isn't defined in a header:
// https://mail.gnome.org/archives/commits-list/2013-May/msg01329.html
"res_init" if android => true,

// On macOS and iOS, res_init is available, but requires linking with libresolv:
// http://blog.achernya.com/2013/03/os-x-has-silly-libsystem.html
// See discussion for skipping here:
// https://github.com/rust-lang/libc/pull/585#discussion_r114561460
"res_init" if apple => true,

_ => false,
}
});
Expand Down

0 comments on commit be7e45f

Please sign in to comment.