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 6eb8d1c commit b3700e4Copy full SHA for b3700e4
src/unix/mod.rs
@@ -708,15 +708,10 @@ extern {
708
res: *mut *mut addrinfo) -> ::c_int;
709
pub fn freeaddrinfo(res: *mut addrinfo);
710
pub fn gai_strerror(errcode: ::c_int) -> *const ::c_char;
711
- #[cfg_attr(all(unix,
712
- not(target_os = "macos"),
713
- not(target_os = "ios"),
714
- not(target_os = "netbsd"),
715
- not(target_os = "openbsd"),
716
- not(target_os = "bitrig"),
717
- not(target_os = "solaris"),
718
- not(target_env = "musl")
719
- ),
+ #[cfg_attr(any(
+ all(target_os = "linux", not(target_env = "musl")),
+ target_os = "freebsd",
+ target_os = "dragonfly"),
720
link_name = "__res_init")]
721
#[cfg_attr(any(target_os = "macos", target_os = "ios"),
722
link_name = "res_9_init")]
0 commit comments