Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build with musl #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl<T> TryJoinHandle for thread::JoinHandle<T> {
unsafe {
let thread = self.as_pthread_t();

match pthread_tryjoin_np(thread, ptr::null_mut()) {
match pthread_tryjoin_np(thread as _, ptr::null_mut()) {
0 => Ok(()),
err => Err(IoError::from_raw_os_error(err)),
}
Expand All @@ -112,7 +112,7 @@ impl<T> TryJoinHandle for thread::JoinHandle<T> {
tv_nsec: total.subsec_nanos() as i64,
};

match pthread_timedjoin_np(thread, ptr::null_mut(), &abstime as *const libc::timespec) {
match pthread_timedjoin_np(thread as _, ptr::null_mut(), &abstime as *const libc::timespec) {
0 => Ok(()),
err => Err(IoError::from_raw_os_error(err)),
}
Expand Down