File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
library/std/src/sys/unix/ext/net Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,21 @@ use crate::ptr::read_unaligned;
9
9
use crate :: slice:: from_raw_parts;
10
10
use crate :: sys:: net:: Socket ;
11
11
12
- #[ cfg( any( target_os = "android" , target_os = "linux" , ) ) ]
13
- use libc:: { gid_t, pid_t, uid_t} ;
14
12
// FIXME(#43348): Make libc adapt #[doc(cfg(...))] so we don't need these fake definitions here?
15
13
#[ cfg( not( unix) ) ]
16
14
#[ allow( non_camel_case_types) ]
17
15
mod libc {
16
+ pub use libc:: c_int;
18
17
pub struct ucred ;
19
18
pub struct cmsghdr ;
20
19
pub type pid_t = i32 ;
21
20
pub type gid_t = u32 ;
22
21
pub type uid_t = u32 ;
23
22
}
24
23
24
+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" , ) ) ]
25
+ use libc:: { gid_t, pid_t, uid_t} ;
26
+
25
27
pub ( super ) fn recv_vectored_with_ancillary_from (
26
28
socket : & Socket ,
27
29
bufs : & mut [ IoSliceMut < ' _ > ] ,
You can’t perform that action at this time.
0 commit comments