diff --git a/src/lib.rs b/src/lib.rs index fa4c37d427..80de88ed3b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -88,6 +88,12 @@ pub mod error { } } } + #[cfg(feature = "redox_syscall")] + impl From for syscall::Error { + fn from(value: Error) -> Self { + Self::new(value.errno()) + } + } #[cfg(feature = "std")] impl From for std::io::Error { fn from(value: Error) -> Self {