We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65601c5 commit e340380Copy full SHA for e340380
libc-test/build.rs
@@ -200,7 +200,7 @@ fn main() {
200
"SIG_IGN" => true, // sighandler_t weirdness
201
202
// types on musl are defined a little differently
203
- n if musl && n.contains("PTHREAD") => true,
+ n if musl && n.contains("__SIZEOF_PTHREAD") => true,
204
205
_ => false,
206
}
src/unix/notbsd/linux/mod.rs
@@ -221,7 +221,9 @@ extern {
221
222
223
cfg_if! {
224
- if #[cfg(any(target_arch = "arm", target_arch = "x86",
+ if #[cfg(any(target_env = "musl"))] {
225
+ pub const PTHREAD_STACK_MIN: ::size_t = 2048;
226
+ } else if #[cfg(any(target_arch = "arm", target_arch = "x86",
227
target_arch = "x86_64"))] {
228
pub const PTHREAD_STACK_MIN: ::size_t = 16384;
229
} else {
0 commit comments