We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae5cf30 commit fe94999Copy full SHA for fe94999
src/unix/mod.rs
@@ -694,7 +694,13 @@ extern {
694
res: *mut *mut addrinfo) -> ::c_int;
695
pub fn freeaddrinfo(res: *mut addrinfo);
696
pub fn gai_strerror(errcode: ::c_int) -> *const ::c_char;
697
- #[link_name = "__res_init"]
+ #[cfg_attr(all(unix,
698
+ not(target_os = "macos"),
699
+ not(target_os = "solaris"),
700
+ not(target_env = "musl")
701
+ ),
702
+ link_name = "__res_init")]
703
+ #[cfg_attr(target_os = "macos", link_name = "res_9_init")]
704
pub fn res_init() -> ::c_int;
705
706
#[cfg_attr(target_os = "netbsd", link_name = "__gmtime_r50")]
0 commit comments