diff options
| author | Dan McGregor <dan.mcgregor@usask.ca> | 2023-06-06 10:15:11 -0600 |
|---|---|---|
| committer | Dan McGregor <dan.mcgregor@usask.ca> | 2023-06-06 10:28:10 -0600 |
| commit | e99f7ed0713087626c16de542ac24201ac4c356c (patch) | |
| tree | 84d03b2b416493b8b1aaf2de4ca39de85c3b5f36 /library/std/src | |
| parent | adc719d7147d5e2578ce08e0b4504be44650256e (diff) | |
| download | rust-e99f7ed0713087626c16de542ac24201ac4c356c.tar.gz rust-e99f7ed0713087626c16de542ac24201ac4c356c.zip | |
Fix documentation build on FreeBSD
After the socket ancillary data implementation was introduced, the build was broken on FreeBSD, add the same workaround as for the existing implementations.
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/os/unix/net/ancillary.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/library/std/src/os/unix/net/ancillary.rs b/library/std/src/os/unix/net/ancillary.rs index 7565fbc0d09..6bd87d61ae1 100644 --- a/library/std/src/os/unix/net/ancillary.rs +++ b/library/std/src/os/unix/net/ancillary.rs @@ -11,7 +11,13 @@ use crate::slice::from_raw_parts; use crate::sys::net::Socket; // FIXME(#43348): Make libc adapt #[doc(cfg(...))] so we don't need these fake definitions here? -#[cfg(all(doc, not(target_os = "linux"), not(target_os = "android"), not(target_os = "netbsd")))] +#[cfg(all( + doc, + not(target_os = "linux"), + not(target_os = "android"), + not(target_os = "netbsd"), + not(target_os = "freebsd") +))] #[allow(non_camel_case_types)] mod libc { pub use libc::c_int; |
