File tree 3 files changed +25
-30
lines changed
3 files changed +25
-30
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ pub type Elf64_Xword = u64;
48
48
49
49
pub type eventfd_t = u64 ;
50
50
51
+ // these structs sit behind a heap allocation on Android
52
+ pub type posix_spawn_file_actions_t = * mut :: c_void ;
53
+ pub type posix_spawnattr_t = * mut :: c_void ;
54
+
51
55
s ! {
52
56
pub struct stack_t {
53
57
pub ss_sp: * mut :: c_void,
Original file line number Diff line number Diff line change @@ -1012,12 +1012,33 @@ s! {
1012
1012
pub freq: [ iw_freq; IW_MAX_FREQUENCIES ] ,
1013
1013
pub enc_capa: __u32,
1014
1014
}
1015
+
1015
1016
pub struct iw_priv_args {
1016
1017
pub cmd: __u32,
1017
1018
pub set_args: __u16,
1018
1019
pub get_args: __u16,
1019
1020
pub name: [ c_char; :: IFNAMSIZ ] ,
1020
1021
}
1022
+
1023
+ pub struct posix_spawn_file_actions_t {
1024
+ __allocated: :: c_int,
1025
+ __used: :: c_int,
1026
+ __actions: * mut :: c_int,
1027
+ __pad: [ :: c_int; 16 ] ,
1028
+ }
1029
+
1030
+ pub struct posix_spawnattr_t {
1031
+ __flags: :: c_short,
1032
+ __pgrp: :: pid_t,
1033
+ __sd: :: sigset_t,
1034
+ __ss: :: sigset_t,
1035
+ #[ cfg( any( target_env = "musl" , target_env = "ohos" ) ) ]
1036
+ __prio: :: c_int,
1037
+ #[ cfg( not( any( target_env = "musl" , target_env = "ohos" ) ) ) ]
1038
+ __sp: :: sched_param,
1039
+ __policy: :: c_int,
1040
+ __pad: [ :: c_int; 16 ] ,
1041
+ }
1021
1042
}
1022
1043
1023
1044
cfg_if ! {
Original file line number Diff line number Diff line change @@ -6,36 +6,6 @@ pub type timer_t = *mut ::c_void;
6
6
pub type key_t = :: c_int ;
7
7
pub type id_t = :: c_uint ;
8
8
9
- cfg_if ! {
10
- if #[ cfg( target_os = "android" ) ] {
11
- // these structs sit behind a heap allocation on Android
12
- pub type posix_spawn_file_actions_t = * mut :: c_void;
13
- pub type posix_spawnattr_t = * mut :: c_void;
14
- } else if #[ cfg( not( target_os = "emscripten" ) ) ] {
15
- s! {
16
- pub struct posix_spawn_file_actions_t {
17
- __allocated: :: c_int,
18
- __used: :: c_int,
19
- __actions: * mut :: c_int,
20
- __pad: [ :: c_int; 16 ] ,
21
- }
22
-
23
- pub struct posix_spawnattr_t {
24
- __flags: :: c_short,
25
- __pgrp: :: pid_t,
26
- __sd: :: sigset_t,
27
- __ss: :: sigset_t,
28
- #[ cfg( any( target_env = "musl" , target_env = "ohos" ) ) ]
29
- __prio: :: c_int,
30
- #[ cfg( not( any( target_env = "musl" , target_env = "ohos" ) ) ) ]
31
- __sp: :: sched_param,
32
- __policy: :: c_int,
33
- __pad: [ :: c_int; 16 ] ,
34
- }
35
- }
36
- }
37
- }
38
-
39
9
missing ! {
40
10
#[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
41
11
pub enum timezone { }
You can’t perform that action at this time.
0 commit comments