Skip to content

Commit ae664ff

Browse files
committed
Removing sched_getcpu for musl as no current releases support it
1 parent b06c1f8 commit ae664ff

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

src/unix/notbsd/android/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ extern {
560560
pub fn __sched_cpualloc(count: ::size_t) -> *mut ::cpu_set_t;
561561
pub fn __sched_cpufree(set: *mut ::cpu_set_t);
562562
pub fn __sched_cpucount(setsize: ::size_t, set: *mut cpu_set_t) -> ::c_int;
563+
pub fn sched_getcpu() -> ::c_int;
563564
}
564565

565566
cfg_if! {

src/unix/notbsd/linux/other/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ extern {
506506
pub fn pthread_setaffinity_np(thread: ::pthread_t,
507507
cpusetsize: ::size_t,
508508
cpuset: *const ::cpu_set_t) -> ::c_int;
509+
pub fn sched_getcpu() -> ::c_int;
509510
}
510511

511512
cfg_if! {

src/unix/notbsd/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,6 @@ extern {
804804
pub fn stat64(path: *const c_char, buf: *mut stat64) -> ::c_int;
805805
pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int;
806806
pub fn sysinfo (info: *mut ::sysinfo) -> ::c_int;
807-
pub fn sched_getcpu() -> ::c_int;
808807
}
809808

810809
cfg_if! {

0 commit comments

Comments
 (0)