File tree 3 files changed +6
-17
lines changed
3 files changed +6
-17
lines changed Original file line number Diff line number Diff line change 227
227
//! ```
228
228
use cfg_if:: cfg_if;
229
229
230
- #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "redox" ) ) ]
230
+ #[ cfg( any( linux_android , target_os = "redox" ) ) ]
231
231
#[ macro_use]
232
232
mod linux;
233
233
234
- #[ cfg( any(
235
- target_os = "android" ,
236
- target_os = "linux" ,
237
- target_os = "redox"
238
- ) ) ]
234
+ #[ cfg( any( linux_android, target_os = "redox" ) ) ]
239
235
pub use self :: linux:: * ;
240
236
241
237
#[ cfg( any( bsd, target_os = "illumos" , target_os = "haiku" , ) ) ]
Original file line number Diff line number Diff line change @@ -9,10 +9,7 @@ use std::ptr;
9
9
pub type RequestType = c_int ;
10
10
11
11
cfg_if ! {
12
- if #[ cfg( any( target_os = "dragonfly" ,
13
- target_os = "freebsd" ,
14
- target_os = "macos" ,
15
- target_os = "openbsd" ) ) ] {
12
+ if #[ cfg( any( freebsdlike, target_os = "macos" , target_os = "openbsd" ) ) ] {
16
13
#[ doc( hidden) ]
17
14
pub type AddressType = * mut :: libc:: c_char;
18
15
} else {
@@ -37,9 +34,7 @@ libc_enum! {
37
34
PT_WRITE_U ,
38
35
PT_CONTINUE ,
39
36
PT_KILL ,
40
- #[ cfg( any( any( target_os = "dragonfly" ,
41
- target_os = "freebsd" ,
42
- target_os = "macos" ) ,
37
+ #[ cfg( any( any( freebsdlike, target_os = "macos" ) ,
43
38
all( target_os = "openbsd" , target_arch = "x86_64" ) ,
44
39
all( target_os = "netbsd" , any( target_arch = "x86_64" ,
45
40
target_arch = "powerpc" ) ) ) ) ]
Original file line number Diff line number Diff line change @@ -7,17 +7,15 @@ mod linux;
7
7
pub use self :: linux:: * ;
8
8
9
9
#[ cfg( any(
10
- target_os = "dragonfly" ,
11
- target_os = "freebsd" ,
10
+ freebsdlike,
12
11
target_os = "macos" ,
13
12
target_os = "netbsd" ,
14
13
target_os = "openbsd"
15
14
) ) ]
16
15
mod bsd;
17
16
18
17
#[ cfg( any(
19
- target_os = "dragonfly" ,
20
- target_os = "freebsd" ,
18
+ freebsdlike,
21
19
target_os = "macos" ,
22
20
target_os = "netbsd" ,
23
21
target_os = "openbsd"
You can’t perform that action at this time.
0 commit comments