Skip to content

Commit 513f28d

Browse files
author
MikaelUrankar
committed
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`
1 parent caeea3f commit 513f28d

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)