Skip to content

Commit b3700e4

Browse files
committed
Blacklist > whitelist
1 parent 6eb8d1c commit b3700e4

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/unix/mod.rs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -708,15 +708,10 @@ extern {
708708
res: *mut *mut addrinfo) -> ::c_int;
709709
pub fn freeaddrinfo(res: *mut addrinfo);
710710
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-
),
711+
#[cfg_attr(any(
712+
all(target_os = "linux", not(target_env = "musl")),
713+
target_os = "freebsd",
714+
target_os = "dragonfly"),
720715
link_name = "__res_init")]
721716
#[cfg_attr(any(target_os = "macos", target_os = "ios"),
722717
link_name = "res_9_init")]

0 commit comments

Comments
 (0)