From 68b219ce2fef748db15d1fc93a7e63e404e745ec Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Sat, 3 Apr 2021 16:34:11 -0500 Subject: [PATCH] Add rustyline to redox patches --- Cargo.toml | 1 + vm/src/stdlib/os.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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,