about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2023-06-16 14:46:16 +0530
committerGitHub <noreply@github.com>2023-06-16 14:46:16 +0530
commit48b645e0eafcdc7049ef9a20245df73490282449 (patch)
treec4ba77828b74afb5aef9c48404546e53c4894e1e /library/std/src
parent627f85cd5a80c18036e38cdfbe0b7a5ad94f7f26 (diff)
parent513f28db0a540725bc41f080a0f52973af67c3db (diff)
downloadrust-48b645e0eafcdc7049ef9a20245df73490282449.tar.gz
rust-48b645e0eafcdc7049ef9a20245df73490282449.zip
Rollup merge of #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`
```
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/os/unix/net/ancillary.rs1
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;