8000 Fix stat module compilation for Redox OS · RustPython/RustPython@e41d7f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit e41d7f5

Browse files
willnodeyouknowone
authored andcommitted
Fix stat module compilation for Redox OS
1 parent 2bd5212 commit e41d7f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vm/src/stdlib/stat.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ mod stat {
132132
#[pyattr]
133133
pub const S_IWUSR: Mode = 0o0200;
134134

135-
#[cfg(all(unix, not(target_os = "android")))]
135+
#[cfg(all(unix, not(target_os = "android"), not(target_os = "redox")))]
136136
#[pyattr]
137137
pub const S_IWRITE: Mode = libc::S_IWRITE;
138-
#[cfg(any(not(unix), target_os = "android"))]
138+
#[cfg(any(not(unix), target_os = "android", target_os = "redox"))]
139139
#[pyattr]
140140
pub const S_IWRITE: Mode = 0o0200;
141141

@@ -146,10 +146,10 @@ mod stat {
146146
#[pyattr]
147147
pub const S_IXUSR: Mode = 0o0100;
148148

149-
#[cfg(all(unix, not(target_os = "android")))]
149+
#[cfg(all(unix, not(target_os = "android"), not(target_os = "redox")))]
150150
#[pyattr]
151151
pub const S_IEXEC: Mode = libc::S_IEXEC;
152-
#[cfg(any(not(unix), target_os = "android"))]
152+
#[cfg(any(not(unix), target_os = "android", target_os = "redox"))]
153153
#[pyattr]
154154
pub const S_IEXEC: Mode = 0o0100;
155155

0 commit comments

Comments
 (0)
0