Skip to content

Commit 9dcd60a

Browse files
authored
fix: sched_getcpu missing feature "process" (#931)
1 parent 58238c7 commit 9dcd60a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/backend/linux_raw/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
mod arch;
1919
mod conv;
2020
mod reg;
21-
#[cfg(any(feature = "time", target_arch = "x86"))]
21+
#[cfg(any(feature = "time", feature = "process", target_arch = "x86"))]
2222
mod vdso;
23-
#[cfg(any(feature = "time", target_arch = "x86"))]
23+
#[cfg(any(feature = "time", feature = "process", target_arch = "x86"))]
2424
mod vdso_wrappers;
2525

2626
#[cfg(feature = "event")]

src/backend/linux_raw/vdso_wrappers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use core::sync::atomic::Ordering::Relaxed;
2929
#[cfg(target_pointer_width = "32")]
3030
#[cfg(feature = "time")]
3131
use linux_raw_sys::general::timespec as __kernel_old_timespec;
32-
#[cfg(feature = "time")]
32+
#[cfg(any(feature = "time", feature = "process"))]
3333
use {
3434
super::c,
3535
super::conv::{c_int, ret},

0 commit comments

Comments
 (0)