Skip to content

Commit c645bc1

Browse files
author
Victor Polevoy
committed
Disable pthread_setschedprio for android
1 parent 192a245 commit c645bc1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/unix/notbsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,7 @@ 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+
#[cfg(not(target_os = "android"))]
965966
pub fn pthread_setschedprio(native: ::pthread_t,
966967
priority: ::c_int) -> ::c_int;
967968
pub fn pthread_getschedparam(native: ::pthread_t,

0 commit comments

Comments
 (0)