Skip to content

Commit 79273fa

Browse files
committed
Fix cannot find type ucred for MacOs by using fake definitions
1 parent d8c75d9 commit 79273fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/unix/ext/net/ancillary.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::slice::from_raw_parts;
1010
use crate::sys::net::Socket;
1111

1212
// FIXME(#43348): Make libc adapt #[doc(cfg(...))] so we don't need these fake definitions here?
13-
#[cfg(not(unix))]
13+
#[cfg(all(doc, not(target_os = "linux"), not(target_os = "android")))]
1414
#[allow(non_camel_case_types)]
1515
mod libc {
1616
pub use libc::c_int;

0 commit comments

Comments
 (0)