core/io: Fix build on Android and iOS

Commit ebe6aa0d28 ("adjust cfg for unix
and linux IO") adjusted the I/O conditional compilation, but forgot that
Android and iOS are also part of Unix target family.

Fixes #2500
This commit is contained in:
Pekka Enberg
2025-08-25 11:21:46 +03:00
parent 262ead8240
commit 5fe5e1548b

View File

@@ -506,15 +506,7 @@ cfg_block! {
pub use PlatformIO as SyscallIO;
}
#[cfg(any(target_os = "android", target_os = "ios"))] {
mod unix;
#[cfg(feature = "fs")]
pub use unix::UnixIO;
pub use unix::UnixIO as SyscallIO;
pub use unix::UnixIO as PlatformIO;
}
#[cfg(target_os = "windows")] {
#[cfg(target_os = "windows")] {
mod windows;
pub use windows::WindowsIO as PlatformIO;
pub use PlatformIO as SyscallIO;