Skip to content

Commit b1f6e39

Browse files
authored
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
2 parents bc50a9b + b8eaa20 commit b1f6e39

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

std/src/os/unix/net/ancillary.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ use crate::slice::from_raw_parts;
1111
use crate::sys::net::Socket;
1212

1313
// FIXME(#43348): Make libc adapt #[doc(cfg(...))] so we don't need these fake definitions here?
14-
#[cfg(all(doc, not(target_os = "linux"), not(target_os = "android"), not(target_os = "netbsd")))]
14+
#[cfg(all(
15+
doc,
16+
not(target_os = "linux"),
17+
not(target_os = "android"),
18+
not(target_os = "netbsd"),
19+
not(target_os = "freebsd")
20+
))]
1521
#[allow(non_camel_case_types)]
1622
mod libc {
1723
pub use libc::c_int;

0 commit comments

Comments
 (0)