Fix cannot find type ucred for MacOs by using fake definitions
This commit is contained in:
parent
d8c75d9f91
commit
79273fa30c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue