summaryrefslogtreecommitdiffstats
path: root/library/std/src/os/unix/net/ancillary.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/os/unix/net/ancillary.rs')
-rw-r--r--library/std/src/os/unix/net/ancillary.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/library/std/src/os/unix/net/ancillary.rs b/library/std/src/os/unix/net/ancillary.rs
index 7565fbc0d..218536689 100644
--- a/library/std/src/os/unix/net/ancillary.rs
+++ b/library/std/src/os/unix/net/ancillary.rs
@@ -11,12 +11,19 @@ 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;
pub struct ucred;
pub struct cmsghdr;
+ pub struct sockcred2;
pub type pid_t = i32;
pub type gid_t = u32;
pub type uid_t = u32;