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
1 changed files with 1 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ mod libc {
|
|||
pub use libc::c_int;
|
||||
pub struct ucred;
|
||||
pub struct cmsghdr;
|
||||
pub struct sockcred2;
|
||||
pub type pid_t = i32;
|
||||
pub type gid_t = u32;
|
||||
pub type uid_t = u32;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue