File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ fn main() {
30
30
println ! ( "cargo:rustc-link-lib=resolv" ) ;
31
31
} else if target. contains ( "apple-darwin" ) {
32
32
println ! ( "cargo:rustc-link-lib=System" ) ;
33
-
33
+ println ! ( "cargo:rustc-link-lib=framework=Security" ) ;
34
34
// res_init and friends require -lresolv on macOS/iOS.
35
35
// See #41582 and http://blog.achernya.com/2013/03/os-x-has-silly-libsystem.html
36
36
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) {
12
12
}
13
13
14
14
#[ cfg( all( unix,
15
+ not( target_os = "macos" ) ,
15
16
not( target_os = "ios" ) ,
16
17
not( target_os = "openbsd" ) ,
17
18
not( target_os = "freebsd" ) ,
@@ -99,7 +100,7 @@ mod imp {
99
100
}
100
101
}
101
102
102
- #[ cfg( target_os = "ios" ) ]
103
+ #[ cfg( any ( target_os = "macos" , target_os = " ios") ) ]
103
104
mod imp {
104
105
use crate :: io;
105
106
use crate :: ptr;
You can’t perform that action at this time.
0 commit comments