Skip to content

Commit be7e45f

Browse files
committed
Skip res_init test on macOS/iOS
1 parent fcf5fc0 commit be7e45f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

libc-test/build.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,10 +469,16 @@ fn main() {
469469
// it's in a header file?
470470
"endpwent" if android => true,
471471

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

476+
// On macOS and iOS, res_init is available, but requires linking with libresolv:
477+
// http://blog.achernya.com/2013/03/os-x-has-silly-libsystem.html
478+
// See discussion for skipping here:
479+
// https://github.com/rust-lang/libc/pull/585#discussion_r114561460
480+
"res_init" if apple => true,
481+
476482
_ => false,
477483
}
478484
});

0 commit comments

Comments
 (0)