File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,20 +160,13 @@ pub use crate::error::Error;
160160#[ allow( dead_code) ]
161161mod util;
162162
163- cfg_if ! {
164- // Unlike the other Unix, Fuchsia and iOS don't use the libc to make any calls.
165- if #[ cfg( any( target_os = "android" , target_os = "dragonfly" , target_os = "emscripten" ,
166- target_os = "freebsd" , target_os = "haiku" , target_os = "illumos" ,
167- target_os = "linux" , target_os = "macos" , target_os = "netbsd" ,
168- target_os = "openbsd" , target_os = "redox" , target_os = "solaris" ) ) ] {
169- #[ allow( dead_code) ]
170- mod util_libc;
171- // Keep std-only trait definitions for backwards compatiblity
172- mod error_impls;
173- } else if #[ cfg( feature = "std" ) ] {
174- mod error_impls;
175- }
176- }
163+ // Unlike the other Unix, Fuchsia and iOS don't use the libc to make any calls.
164+ #[ cfg( unix) ]
165+ #[ allow( dead_code) ]
166+ mod util_libc;
167+
168+ #[ cfg( feature = "std" ) ]
169+ mod error_impls;
177170
178171// These targets read from a file as a fallback method.
179172#[ cfg( any(
You can’t perform that action at this time.
0 commit comments