Fix cfg syntax warnings in libnative
This commit is contained in:
parent
c586490715
commit
67d83f3bfc
1 changed files with 4 additions and 8 deletions
|
@ -232,11 +232,9 @@ mod signal {
|
||||||
pub static SA_SIGINFO: libc::c_int = 0x0040;
|
pub static SA_SIGINFO: libc::c_int = 0x0040;
|
||||||
pub static SIGCHLD: libc::c_int = 20;
|
pub static SIGCHLD: libc::c_int = 20;
|
||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(any(target_os = "macos", target_os = "ios"))]
|
||||||
#[cfg(target_os = "ios")]
|
|
||||||
pub type sigset_t = u32;
|
pub type sigset_t = u32;
|
||||||
#[cfg(target_os = "freebsd")]
|
#[cfg(any(target_os = "freebsd", target_os = "dragonfly"))]
|
||||||
#[cfg(target_os = "dragonfly")]
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct sigset_t {
|
pub struct sigset_t {
|
||||||
bits: [u32, ..4],
|
bits: [u32, ..4],
|
||||||
|
@ -254,8 +252,7 @@ mod signal {
|
||||||
pub status: libc::c_int,
|
pub status: libc::c_int,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(any(target_os = "macos", target_os = "ios"))]
|
||||||
#[cfg(target_os = "ios")]
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct sigaction {
|
pub struct sigaction {
|
||||||
pub sa_handler: extern fn(libc::c_int),
|
pub sa_handler: extern fn(libc::c_int),
|
||||||
|
@ -264,8 +261,7 @@ mod signal {
|
||||||
pub sa_flags: libc::c_int,
|
pub sa_flags: libc::c_int,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "freebsd")]
|
#[cfg(any(target_os = "freebsd", target_os = "dragonfly"))]
|
||||||
#[cfg(target_os = "dragonfly")]
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct sigaction {
|
pub struct sigaction {
|
||||||
pub sa_handler: extern fn(libc::c_int),
|
pub sa_handler: extern fn(libc::c_int),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue