core: Fix syscall VFS on Linux

Fix the syscall VFS on Linux not to use `PlatformIO`, which is just an
alias for `io_uring`.
This commit is contained in:
Pekka Enberg 2025-04-09 19:27:58 +03:00
parent 265457f175
commit 2d009083ba
2 changed files with 8 additions and 2 deletions

View file

@ -191,6 +191,7 @@ cfg_block! {
mod unix;
#[cfg(feature = "fs")]
pub use unix::UnixIO;
pub use unix::UnixIO as SyscallIO;
pub use io_uring::UringIO as PlatformIO;
}
@ -199,16 +200,19 @@ cfg_block! {
#[cfg(feature = "fs")]
pub use unix::UnixIO;
pub use unix::UnixIO as PlatformIO;
pub use PlatformIO as SyscallIO;
}
#[cfg(target_os = "windows")] {
mod windows;
pub use windows::WindowsIO as PlatformIO;
pub use PlatformIO as SyscallIO;
}
#[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows")))] {
mod generic;
pub use generic::GenericIO as PlatformIO;
pub use PlatformIO as SyscallIO;
}
}