File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ fn main() {
3030 println ! ( "cargo:rustc-link-lib=resolv" ) ;
3131 } else if target. contains ( "apple-darwin" ) {
3232 println ! ( "cargo:rustc-link-lib=System" ) ;
33-
33+ println ! ( "cargo:rustc-link-lib=framework=Security" ) ;
3434 // res_init and friends require -lresolv on macOS/iOS.
3535 // See #41582 and http://blog.achernya.com/2013/03/os-x-has-silly-libsystem.html
3636 println ! ( "cargo:rustc-link-lib=resolv" ) ;
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ pub fn hashmap_random_keys() -> (u64, u64) {
1212}
1313
1414#[ cfg( all( unix,
15+ not( target_os = "macos" ) ,
1516 not( target_os = "ios" ) ,
1617 not( target_os = "openbsd" ) ,
1718 not( target_os = "freebsd" ) ,
@@ -99,7 +100,7 @@ mod imp {
99100 }
100101}
101102
102- #[ cfg( target_os = "ios" ) ]
103+ #[ cfg( any ( target_os = "macos" , target_os = " ios") ) ]
103104mod imp {
104105 use crate :: io;
105106 use crate :: ptr;
You can’t perform that action at this time.
0 commit comments