Skip to content

Commit 0d71349

Browse files
committed
musl 32 bits
1 parent b59c8c6 commit 0d71349

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ extern "C" {
11171117
pub fn pthread_sigqueue(thread: crate::pthread_t, sig: c_int, value: crate::sigval) -> c_int;
11181118
pub fn pthread_tryjoin_np(thread: crate::pthread_t, retval: *mut *mut c_void) -> c_int;
11191119
#[cfg_attr(
1120-
all(target_env = "gnu", target_pointer_width = "32", gnu_time_bits64),
1120+
all(target_pointer_width = "32", gnu_time_bits64),
11211121
link_name = "__pthread_timedjoin_np64"
11221122
)]
11231123
pub fn pthread_timedjoin_np(

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,10 @@ extern "C" {
870870
)]
871871
pub fn utmpxname(file: *const c_char) -> c_int;
872872
pub fn pthread_tryjoin_np(thread: crate::pthread_t, retval: *mut *mut c_void) -> c_int;
873+
#[cfg_attr(
874+
all(musl32_time64, target_pointer_width = "32"),
875+
link_name = "__pthread_timedjoin_np_time64"
876+
)]
873877
pub fn pthread_timedjoin_np(
874878
thread: crate::pthread_t,
875879
retval: *mut *mut c_void,

0 commit comments

Comments
 (0)