File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ fn main() {
200
200
"SIG_IGN" => true , // sighandler_t weirdness
201
201
202
202
// types on musl are defined a little differently
203
- n if musl && n. contains ( "PTHREAD " ) => true ,
203
+ n if musl && n. contains ( "__SIZEOF_PTHREAD " ) => true ,
204
204
205
205
_ => false ,
206
206
}
Original file line number Diff line number Diff line change @@ -221,7 +221,9 @@ extern {
221
221
}
222
222
223
223
cfg_if ! {
224
- if #[ cfg( any( target_arch = "arm" , target_arch = "x86" ,
224
+ 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" ,
225
227
target_arch = "x86_64" ) ) ] {
226
228
pub const PTHREAD_STACK_MIN : :: size_t = 16384 ;
227
229
} else {
You can’t perform that action at this time.
0 commit comments