Skip to content

Commit 7723cf1

Browse files
committed
disable schedparam from musl
1 parent 770f166 commit 7723cf1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vm/src/stdlib/posix.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ pub mod module {
556556
target_os = "freebsd",
557557
target_os = "android"
558558
))]
559+
#[cfg(not(target_env = "musl"))]
559560
fn try_to_libc(&self, vm: &VirtualMachine) -> PyResult<libc::sched_param> {
560561
use crate::AsObject;
561562
let priority_class = self.sched_priority.class();
@@ -625,6 +626,7 @@ pub mod module {
625626
target_os = "freebsd",
626627
target_os = "android"
627628
))]
629+
#[cfg(not(target_env = "musl"))]
628630
#[pyfunction]
629631
fn sched_setscheduler(args: SchedSetschedulerArgs, vm: &VirtualMachine) -> PyResult<i32> {
630632
let libc_sched_param = args.sched_param_obj.try_to_libc(vm)?;
@@ -675,6 +677,7 @@ pub mod module {
675677
target_os = "freebsd",
676678
target_os = "android"
677679
))]
680+
#[cfg(not(target_env = "musl"))]
678681
#[pyfunction]
679682
fn sched_setparam(args: SchedSetParamArgs, vm: &VirtualMachine) -> PyResult<i32> {
680683
let libc_sched_param = args.sched_param_obj.try_to_libc(vm)?;

0 commit comments

Comments
 (0)