File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -307,6 +307,9 @@ cfg_if::cfg_if! {
307
307
#[ link( name = "zircon" ) ]
308
308
#[ link( name = "fdio" ) ]
309
309
extern "C" { }
310
+ } else if #[ cfg( all( target_os = "linux" , target_env = "uclibc" ) ) ] {
311
+ #[ link( name = "dl" ) ]
312
+ extern "C" { }
310
313
}
311
314
}
312
315
Original file line number Diff line number Diff line change @@ -594,7 +594,8 @@ pub mod guard {
594
594
Some ( stackaddr - guardsize..stackaddr)
595
595
} else if cfg ! ( all( target_os = "linux" , target_env = "musl" ) ) {
596
596
Some ( stackaddr - guardsize..stackaddr)
597
- } else if cfg ! ( all( target_os = "linux" , target_env = "gnu" ) ) {
597
+ } else if cfg ! ( all( target_os = "linux" , any( target_env = "gnu" , target_env = "uclibc" ) ) )
598
+ {
598
599
// glibc used to include the guard area within the stack, as noted in the BUGS
599
600
// section of `man pthread_attr_getguardsize`. This has been corrected starting
600
601
// with glibc 2.27, and in some distro backports, so the guard is now placed at the
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ cfg_if::cfg_if! {
63
63
// don't want to duplicate it here.
64
64
#[ cfg( all(
65
65
target_os = "linux" ,
66
- target_env = "gnu" ,
66
+ any ( target_env = "gnu" , target_env = "uclibc" ) ,
67
67
not( feature = "llvm-libunwind" ) ,
68
68
not( feature = "system-llvm-libunwind" )
69
69
) ) ]
@@ -72,7 +72,7 @@ extern "C" {}
72
72
73
73
#[ cfg( all(
74
74
target_os = "linux" ,
75
- target_env = "gnu" ,
75
+ any ( target_env = "gnu" , target_env = "uclibc" ) ,
76
76
not( feature = "llvm-libunwind" ) ,
77
77
feature = "system-llvm-libunwind"
78
78
) ) ]
You can’t perform that action at this time.
0 commit comments