diff --git a/Cargo.toml b/Cargo.toml index 438bb989f..7ee1badb0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -70,5 +70,6 @@ opt-level = 3 [patch.crates-io] # REDOX START, Uncommment when you want to compile/check with redoxer +# rustyline = { git = "https://github.com/kkawakam/rustyline" } # REDOX END lock_api = { git = "https://github.com/Amanieu/parking_lot" } diff --git a/vm/src/stdlib/os.rs b/vm/src/stdlib/os.rs index ac2910588..a0b925cf3 100644 --- a/vm/src/stdlib/os.rs +++ b/vm/src/stdlib/os.rs @@ -2532,7 +2532,7 @@ mod posix { } } - #[cfg(not(target_os = "windows"))] + #[cfg(not(any(windows, target_os = "redox")))] #[pyfunction] fn getpriority( which: PriorityWhichType, @@ -2548,7 +2548,7 @@ mod posix { } } - #[cfg(not(target_os = "windows"))] + #[cfg(not(any(windows, target_os = "redox")))] #[pyfunction] fn setpriority( which: PriorityWhichType,