diff options
| author | MikaelUrankar <mikael.urankar@gmail.com> | 2023-06-13 13:14:06 +0200 |
|---|---|---|
| committer | MikaelUrankar <mikael.urankar@gmail.com> | 2023-06-13 13:14:06 +0200 |
| commit | 513f28db0a540725bc41f080a0f52973af67c3db (patch) | |
| tree | 2151a6f966f814a8c6c7df923b16e1f70b86b8b2 | |
| parent | caeea3f0a21574419254c72b3e0863742d3c6fd0 (diff) | |
| download | rust-513f28db0a540725bc41f080a0f52973af67c3db.tar.gz rust-513f28db0a540725bc41f080a0f52973af67c3db.zip | |
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`
| -rw-r--r-- | library/std/src/os/unix/net/ancillary.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/os/unix/net/ancillary.rs b/library/std/src/os/unix/net/ancillary.rs index 7565fbc0d09..814f1c7c283 100644 --- a/library/std/src/os/unix/net/ancillary.rs +++ b/library/std/src/os/unix/net/ancillary.rs @@ -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; |
