Skip to content

Commit

Permalink
Rollup merge of rust-lang#112579 - MikaelUrankar:freebsd_docs, r=cuviper
Browse files Browse the repository at this point in the history
Fix building libstd 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`
```
  • Loading branch information
matthiaskrgr authored Jun 16, 2023
2 parents ac46d03 + 513f28d commit 42a3292
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/std/src/os/unix/net/ancillary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 42a3292

Please sign in to comment.