summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Polevoy <fx@thefx.co>2017-06-13 11:16:40 +0300
committerVictor Polevoy <v.polevoy@omprussia.ru>2017-06-13 11:17:18 +0300
commit84c20a1c9bc2ff64944d48db2b76aef77e1ba08e (patch)
tree3e24ac8a5a393ba34374eac8d1193059f8dfb4df
parentcb03e6236c532eabdb90768befc97f161801ced5 (diff)
downloadrust-libc-84c20a1c9bc2ff64944d48db2b76aef77e1ba08e.tar.gz
Build fix for non-bsd
-rw-r--r--src/unix/mod.rs6
-rw-r--r--src/unix/notbsd/mod.rs6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs
index feee778acc..56844d7d4e 100644
--- a/src/unix/mod.rs
+++ b/src/unix/mod.rs
@@ -598,12 +598,6 @@ extern {
parent: Option<unsafe extern fn()>,
child: Option<unsafe extern fn()>) -> ::c_int;
pub fn pthread_exit(value: *mut ::c_void);
- pub fn pthread_getschedparam(native: ::pthread_t,
- policy: *mut ::c_int,
- param: *mut ::sched_param) -> ::c_int;
- pub fn pthread_setschedparam(native: ::pthread_t,
- policy: ::c_int,
- param: *const ::sched_param) -> ::c_int;
pub fn pthread_setschedprio(native: ::pthread_t,
priority: ::c_int) -> ::c_int;
pub fn pthread_attr_init(attr: *mut ::pthread_attr_t) -> ::c_int;
diff --git a/src/unix/notbsd/mod.rs b/src/unix/notbsd/mod.rs
index 6debd82960..03448e8580 100644
--- a/src/unix/notbsd/mod.rs
+++ b/src/unix/notbsd/mod.rs
@@ -962,6 +962,12 @@ extern {
pshared: ::c_int) -> ::c_int;
pub fn pthread_condattr_getpshared(attr: *const pthread_condattr_t,
pshared: *mut ::c_int) -> ::c_int;
+ pub fn pthread_getschedparam(native: ::pthread_t,
+ policy: *mut ::c_int,
+ param: *mut ::sched_param) -> ::c_int;
+ pub fn pthread_setschedparam(native: ::pthread_t,
+ policy: ::c_int,
+ param: *const ::sched_param) -> ::c_int;
pub fn sched_getaffinity(pid: ::pid_t,
cpusetsize: ::size_t,
cpuset: *mut cpu_set_t) -> ::c_int;