File tree 2 files changed +22
-5
lines changed
2 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,15 @@ pub type uintptr_t = usize;
23
23
pub type ssize_t = isize ;
24
24
25
25
pub type pid_t = i32 ;
26
- pub type uid_t = u32 ;
27
- pub type gid_t = u32 ;
26
+ cfg_if ! {
27
+ if #[ cfg( target_os = "espidf" ) ] {
28
+ pub type uid_t = :: c_ushort;
29
+ pub type gid_t = :: c_ushort;
30
+ } else {
31
+ pub type uid_t = u32 ;
32
+ pub type gid_t = u32 ;
33
+ }
34
+ }
28
35
pub type in_addr_t = u32 ;
29
36
pub type in_port_t = u16 ;
30
37
pub type sighandler_t = :: size_t ;
Original file line number Diff line number Diff line change 1
1
pub type blkcnt_t = i32 ;
2
2
pub type blksize_t = i32 ;
3
3
pub type clockid_t = :: c_ulong ;
4
- pub type dev_t = u32 ;
4
+
5
+ cfg_if ! {
6
+ if #[ cfg( target_os = "espidf" ) ] {
7
+ pub type dev_t = :: c_short;
8
+ pub type ino_t = :: c_ushort;
9
+ pub type off_t = :: c_long;
10
+ } else {
11
+ pub type dev_t = u32 ;
12
+ pub type ino_t = u32 ;
13
+ pub type off_t = i64 ;
14
+ }
15
+ }
16
+
5
17
pub type fsblkcnt_t = u64 ;
6
18
pub type fsfilcnt_t = u32 ;
7
19
pub type id_t = u32 ;
8
- pub type ino_t = u32 ;
9
20
pub type key_t = :: c_int ;
10
21
pub type loff_t = :: c_longlong ;
11
22
pub type mode_t = :: c_uint ;
12
23
pub type nfds_t = u32 ;
13
24
pub type nlink_t = :: c_ushort ;
14
- pub type off_t = i64 ;
15
25
pub type pthread_t = :: c_ulong ;
16
26
pub type pthread_key_t = :: c_uint ;
17
27
pub type rlim_t = u32 ;
You can’t perform that action at this time.
0 commit comments