diff --git a/src/fs/constants.rs b/src/fs/constants.rs index 7accc1f05..da2614f7e 100644 --- a/src/fs/constants.rs +++ b/src/fs/constants.rs @@ -5,7 +5,7 @@ use crate::backend; pub use crate::io::FdFlags; #[cfg(not(any(target_os = "espidf", target_os = "vita")))] pub use backend::fs::types::Access; -pub use backend::fs::types::{Dev, Mode, OFlags}; +pub use backend::fs::types::{Mode, OFlags}; #[cfg(not(any(target_os = "espidf", target_os = "redox")))] pub use backend::fs::types::AtFlags; @@ -14,6 +14,6 @@ pub use backend::fs::types::AtFlags; pub use backend::fs::types::{CloneFlags, CopyfileFlags}; #[cfg(linux_kernel)] -pub use backend::fs::types::*; +pub use backend::fs::types::{RenameFlags, ResolveFlags}; pub use crate::timespec::{Nsecs, Secs, Timespec}; diff --git a/src/fs/mod.rs b/src/fs/mod.rs index 87e9ba8a1..1e1fc42ae 100644 --- a/src/fs/mod.rs +++ b/src/fs/mod.rs @@ -33,7 +33,7 @@ mod file_type; mod getpath; #[cfg(not(target_os = "wasi"))] // WASI doesn't have get[gpu]id. mod id; -#[cfg(not(target_os = "wasi"))] +#[cfg(linux_kernel)] mod ioctl; #[cfg(not(any( target_os = "espidf", @@ -102,7 +102,7 @@ pub use file_type::FileType; pub use getpath::getpath; #[cfg(not(target_os = "wasi"))] pub use id::*; -#[cfg(not(target_os = "wasi"))] +#[cfg(linux_kernel)] pub use ioctl::*; #[cfg(not(any( target_os = "espidf", diff --git a/src/maybe_polyfill/no_std/net/mod.rs b/src/maybe_polyfill/no_std/net/mod.rs index ff3356482..06e8f94d8 100644 --- a/src/maybe_polyfill/no_std/net/mod.rs +++ b/src/maybe_polyfill/no_std/net/mod.rs @@ -1,5 +1,6 @@ mod ip_addr; mod socket_addr; +#[allow(unused_imports)] pub use self::ip_addr::{IpAddr, Ipv4Addr, Ipv6Addr, Ipv6MulticastScope}; pub use self::socket_addr::{SocketAddr, SocketAddrV4, SocketAddrV6};