Skip to content

Commit ad01ceb

Browse files
committed
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.
1 parent cdc2fb7 commit ad01ceb

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)