Fix building the documentation on FreeBSD.
It fixes the following error: error[E0412]: cannot find type `sockcred2` in module `libc` --> library/std/src/os/unix/net/ancillary.rs:211:29 | 211 | pub struct SocketCred(libc::sockcred2); | ^^^^^^^^^ not found in `libc`
This commit is contained in:
parent
caeea3f0a2
commit
513f28db0a
@ -17,6 +17,7 @@ mod libc {
|
|||||||
pub use libc::c_int;
|
pub use libc::c_int;
|
||||||
pub struct ucred;
|
pub struct ucred;
|
||||||
pub struct cmsghdr;
|
pub struct cmsghdr;
|
||||||
|
pub struct sockcred2;
|
||||||
pub type pid_t = i32;
|
pub type pid_t = i32;
|
||||||
pub type gid_t = u32;
|
pub type gid_t = u32;
|
||||||
pub type uid_t = u32;
|
pub type uid_t = u32;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user