File tree Expand file tree Collapse file tree 4 files changed +18
-9
lines changed Expand file tree Collapse file tree 4 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 27
27
#![ cfg_attr( all( target_os = "linux" , target_arch = "arm" ) , doc(
28
28
html_root_url = "https://doc.rust-lang.org/libc/arm-unknown-linux-gnueabihf"
29
29
) ) ]
30
+ #![ cfg_attr( all( target_os = "linux" , target_env = "musleabi" ) , doc(
31
+ html_root_url = "https://doc.rust-lang.org/libc/arm-unknown-linux-musleabi"
32
+ ) ) ]
33
+ #![ cfg_attr( all( target_os = "linux" , target_env = "musleabihf" ) , doc(
34
+ html_root_url = "https://doc.rust-lang.org/libc/arm-unknown-linux-musleabihf"
35
+ ) ) ]
30
36
#![ cfg_attr( all( target_os = "linux" , target_arch = "mips" ) , doc(
31
37
html_root_url = "https://doc.rust-lang.org/libc/mips-unknown-linux-gnu"
32
38
) ) ]
Original file line number Diff line number Diff line change 55
55
pub ru_nvcsw: c_long,
56
56
pub ru_nivcsw: c_long,
57
57
58
- #[ cfg( target_env = "musl" ) ]
58
+ #[ cfg( any ( target_env = "musl" , target_env = "musleabi" , target_env = "musleabihf" ) ) ]
59
59
__reserved: [ c_long; 16 ] ,
60
60
}
61
61
@@ -149,8 +149,9 @@ cfg_if! {
149
149
} else if #[ cfg( all( not( stdbuild) , feature = "use_std" ) ) ] {
150
150
// cargo build, don't pull in anything extra as the libstd dep
151
151
// already pulls in all libs.
152
- } else if #[ cfg( all( target_env = "musl" , not( any( target_arch = "mips" ,
153
- target_arch = "arm" ) ) ) ) ] {
152
+ } else if #[ cfg( any( all( target_env = "musl" , not( target_arch = "mips" ) ) ,
153
+ target_env = "musleabi" ,
154
+ target_env = "musleabihf" ) ) ] {
154
155
#[ link( name = "c" , kind = "static" ) ]
155
156
extern { }
156
157
} else if #[ cfg( target_os = "emscripten" ) ] {
Original file line number Diff line number Diff line change 93
93
}
94
94
95
95
pub struct pthread_cond_t {
96
- #[ cfg( target_env = "musl" ) ]
96
+ #[ cfg( any ( target_env = "musl" , target_env = "musleabi" , target_env = "musleabihf" ) ) ]
97
97
__align: [ * const :: c_void; 0 ] ,
98
- #[ cfg( not( target_env = "musl" ) ) ]
98
+ #[ cfg( not( any ( target_env = "musl" , target_env = "musleabi" , target_env = "musleabihf" ) ) ) ]
99
99
__align: [ :: c_longlong; 0 ] ,
100
100
size: [ u8 ; __SIZEOF_PTHREAD_COND_T] ,
101
101
}
@@ -615,6 +615,8 @@ extern {
615
615
616
616
cfg_if ! {
617
617
if #[ cfg( any( target_env = "musl" ,
618
+ target_env = "musleabi" ,
619
+ target_env = "musleabihf" ,
618
620
target_os = "emscripten" ) ) ] {
619
621
mod musl;
620
622
pub use self :: musl:: * ;
Original file line number Diff line number Diff line change 99
99
100
100
pub struct sched_param {
101
101
pub sched_priority: :: c_int,
102
- #[ cfg( target_env = "musl" ) ]
102
+ #[ cfg( any ( target_env = "musl" , target_env = "musleabi" , target_env = "musleabihf" ) ) ]
103
103
pub sched_ss_low_priority: :: c_int,
104
- #[ cfg( target_env = "musl" ) ]
104
+ #[ cfg( any ( target_env = "musl" , target_env = "musleabi" , target_env = "musleabihf" ) ) ]
105
105
pub sched_ss_repl_period: :: timespec,
106
- #[ cfg( target_env = "musl" ) ]
106
+ #[ cfg( any ( target_env = "musl" , target_env = "musleabi" , target_env = "musleabihf" ) ) ]
107
107
pub sched_ss_init_budget: :: timespec,
108
- #[ cfg( target_env = "musl" ) ]
108
+ #[ cfg( any ( target_env = "musl" , target_env = "musleabi" , target_env = "musleabihf" ) ) ]
109
109
pub sched_ss_max_repl: :: c_int,
110
110
}
111
111
You can’t perform that action at this time.
0 commit comments