Skip to content

Commit 84c20a1

Browse files
iddmVictor Polevoy
authored andcommitted
Build fix for non-bsd
1 parent cb03e62 commit 84c20a1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/unix/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -598,12 +598,6 @@ extern {
598598
parent: Option<unsafe extern fn()>,
599599
child: Option<unsafe extern fn()>) -> ::c_int;
600600
pub fn pthread_exit(value: *mut ::c_void);
601-
pub fn pthread_getschedparam(native: ::pthread_t,
602-
policy: *mut ::c_int,
603-
param: *mut ::sched_param) -> ::c_int;
604-
pub fn pthread_setschedparam(native: ::pthread_t,
605-
policy: ::c_int,
606-
param: *const ::sched_param) -> ::c_int;
607601
pub fn pthread_setschedprio(native: ::pthread_t,
608602
priority: ::c_int) -> ::c_int;
609603
pub fn pthread_attr_init(attr: *mut ::pthread_attr_t) -> ::c_int;

src/unix/notbsd/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,12 @@ extern {
962962
pshared: ::c_int) -> ::c_int;
963963
pub fn pthread_condattr_getpshared(attr: *const pthread_condattr_t,
964964
pshared: *mut ::c_int) -> ::c_int;
965+
pub fn pthread_getschedparam(native: ::pthread_t,
966+
policy: *mut ::c_int,
967+
param: *mut ::sched_param) -> ::c_int;
968+
pub fn pthread_setschedparam(native: ::pthread_t,
969+
policy: ::c_int,
970+
param: *const ::sched_param) -> ::c_int;
965971
pub fn sched_getaffinity(pid: ::pid_t,
966972
cpusetsize: ::size_t,
967973
cpuset: *mut cpu_set_t) -> ::c_int;

0 commit comments

Comments
 (0)