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;
99use crate :: slice:: from_raw_parts;
1010use crate :: sys:: net:: Socket ;
1111
12- #[ cfg( any( target_os = "android" , target_os = "linux" , ) ) ]
13- use libc:: { gid_t, pid_t, uid_t} ;
1412// FIXME(#43348): Make libc adapt #[doc(cfg(...))] so we don't need these fake definitions here?
1513#[ cfg( not( unix) ) ]
1614#[ allow( non_camel_case_types) ]
1715mod libc {
16+ pub use libc:: c_int;
1817 pub struct ucred ;
1918 pub struct cmsghdr ;
2019 pub type pid_t = i32 ;
2120 pub type gid_t = u32 ;
2221 pub type uid_t = u32 ;
2322}
2423
24+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" , ) ) ]
25+ use libc:: { gid_t, pid_t, uid_t} ;
26+
2527pub ( super ) fn recv_vectored_with_ancillary_from (
2628 socket : & Socket ,
2729 bufs : & mut [ IoSliceMut < ' _ > ] ,
You can’t perform that action at this time.
0 commit comments