about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-06-17 12:43:29 +0200
committerGitHub <noreply@github.com>2023-06-17 12:43:29 +0200
commitd2120b7d422215c166d64a0290d40d4222480ba7 (patch)
tree5306431c0f1cf9cccaa522b972dd544e9b1489a8
parentf90d57d06ebc7f250b60b9cab583f111d9a5fb9d (diff)
parente99f7ed0713087626c16de542ac24201ac4c356c (diff)
downloadrust-d2120b7d422215c166d64a0290d40d4222480ba7.tar.gz
rust-d2120b7d422215c166d64a0290d40d4222480ba7.zip
Rollup merge of #112352 - dankm:fbsd_doc_fix, r=thomcc
Fix documentation build on FreeBSD

After the socket ancillary data implementation was introduced, the documentation build was broken on FreeBSD hosts, add the same workaround as for the existing implementations.

Fixes the doc build after #91793
-rw-r--r--library/std/src/os/unix/net/ancillary.rs8
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 814f1c7c283..218536689fd 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;