mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Merge pull request #3321 from deantvv/iss-3319
posix: add os.SCHED_* for macos
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user