Fix cannot find type ucred for MacOs by using fake definitions

This commit is contained in:
LinkTed 2020-10-17 19:36:11 +02:00
parent d8c75d9f91
commit 79273fa30c

View file

@ -10,7 +10,7 @@ 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(not(unix))]
#[cfg(all(doc, not(target_os = "linux"), not(target_os = "android")))]
#[allow(non_camel_case_types)]
mod libc {
pub use libc::c_int;