File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments