From 02eb1bd2e5ba960178bb229d8a6626a2a744cf69 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Sat, 28 Jun 2025 12:09:00 +0700 Subject: [PATCH] Fix stat module compilation for Redox OS --- vm/src/stdlib/stat.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vm/src/stdlib/stat.rs b/vm/src/stdlib/stat.rs index acb15543965..7cfacf965c5 100644 --- a/vm/src/stdlib/stat.rs +++ b/vm/src/stdlib/stat.rs @@ -132,10 +132,10 @@ mod stat { #[pyattr] pub const S_IWUSR: Mode = 0o0200; - #[cfg(all(unix, not(target_os = "android")))] + #[cfg(all(unix, not(target_os = "android"), not(target_os = "redox")))] #[pyattr] pub const S_IWRITE: Mode = libc::S_IWRITE; - #[cfg(any(not(unix), target_os = "android"))] + #[cfg(any(not(unix), target_os = "android", target_os = "redox"))] #[pyattr] pub const S_IWRITE: Mode = 0o0200; @@ -146,10 +146,10 @@ mod stat { #[pyattr] pub const S_IXUSR: Mode = 0o0100; - #[cfg(all(unix, not(target_os = "android")))] + #[cfg(all(unix, not(target_os = "android"), not(target_os = "redox")))] #[pyattr] pub const S_IEXEC: Mode = libc::S_IEXEC; - #[cfg(any(not(unix), target_os = "android"))] + #[cfg(any(not(unix), target_os = "android", target_os = "redox"))] #[pyattr] pub const S_IEXEC: Mode = 0o0100;