summaryrefslogtreecommitdiff
path: root/libc-test
diff options
context:
space:
mode:
authorJon Gjengset <jon@thesquareplanet.com>2017-05-03 15:57:29 -0400
committerJon Gjengset <jon@thesquareplanet.com>2017-05-03 15:57:39 -0400
commitbe7e45f6f5f4fb372ebe8dfab7533500cf3e254c (patch)
treeec38c609e9d0f6132df6b8c973afa15c01d6d78b /libc-test
parentfcf5fc0257bb01e84aabfa0efd0d09638145d105 (diff)
downloadrust-libc-be7e45f6f5f4fb372ebe8dfab7533500cf3e254c.tar.gz
Skip res_init test on macOS/iOS
Diffstat (limited to 'libc-test')
-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,
}
});