Skip to content

Commit 23bd7aa

Browse files
authored
Rollup merge of rust-lang#112579 - MikaelUrankar:freebsd_docs, r=cuviper
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` ```
2 parents f8ca149 + 513f28d commit 23bd7aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/std/src/os/unix/net/ancillary.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ mod libc {
1717
pub use libc::c_int;
1818
pub struct ucred;
1919
pub struct cmsghdr;
20+
pub struct sockcred2;
2021
pub type pid_t = i32;
2122
pub type gid_t = u32;
2223
pub type uid_t = u32;

0 commit comments

Comments
 (0)