From 69771724c6830844025f9d97ce3a9c1e74c86c6a Mon Sep 17 00:00:00 2001 From: Dean Li Date: Sat, 16 Oct 2021 22:30:44 +0800 Subject: [PATCH] posix: add os.SCHED_* for macos --- vm/src/stdlib/posix.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vm/src/stdlib/posix.rs b/vm/src/stdlib/posix.rs index 4dfcaf631..5bc07da56 100644 --- a/vm/src/stdlib/posix.rs +++ b/vm/src/stdlib/posix.rs @@ -105,7 +105,8 @@ pub mod module { target_os = "android", target_os = "freebsd", target_os = "dragonfly", - target_os = "netbsd" + target_os = "netbsd", + target_os = "macos" ))] #[pyattr] const SCHED_RR: i32 = libc::SCHED_RR; @@ -114,7 +115,8 @@ pub mod module { target_os = "android", target_os = "freebsd", target_os = "dragonfly", - target_os = "netbsd" + target_os = "netbsd", + target_os = "macos" ))] #[pyattr] const SCHED_FIFO: i32 = libc::SCHED_FIFO; @@ -122,7 +124,8 @@ pub mod module { target_os = "linux", target_os = "freebsd", target_os = "dragonfly", - target_os = "netbsd" + target_os = "netbsd", + target_os = "macos" ))] #[pyattr] const SCHED_OTHER: i32 = libc::SCHED_OTHER;