summaryrefslogtreecommitdiff
path: root/libc-test/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'libc-test/build.rs')
-rw-r--r--libc-test/build.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs
index 57767f55ea..2f59a442af 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -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,
}
});