We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0069a0 commit a817647Copy full SHA for a817647
library/std/src/sys/unix/ext/net/ancillary.rs
@@ -11,6 +11,16 @@ use crate::sys::net::Socket;
11
12
#[cfg(any(target_os = "android", target_os = "linux",))]
13
use libc::{gid_t, pid_t, uid_t};
14
+// FIXME(#43348): Make libc adapt #[doc(cfg(...))] so we don't need these fake definitions here?
15
+#[cfg(not(unix))]
16
+#[allow(non_camel_case_types)]
17
+mod libc {
18
+ pub struct ucred;
19
+ pub struct cmsghdr;
20
+ pub type pid_t = i32;
21
+ pub type gid_t = u32;
22
+ pub type uid_t = u32;
23
+}
24
25
pub(super) fn recv_vectored_with_ancillary_from(
26
socket: &Socket,
0 commit comments