Skip to content

Commit ad9c1ed

Browse files
authored
Rollup merge of rust-lang#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 rust-lang#91793
2 parents 8522c99 + ad01ceb commit ad9c1ed

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)