mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
Fix sigaction on OS X
This commit is contained in:
parent
56d544f7ad
commit
50e86c26e0
@ -252,16 +252,6 @@ mod signal {
|
|||||||
pub status: libc::c_int,
|
pub status: libc::c_int,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(target_os = "macos", target_os = "ios"))]
|
|
||||||
#[repr(C)]
|
|
||||||
pub struct sigaction {
|
|
||||||
pub sa_handler: extern fn(libc::c_int),
|
|
||||||
sa_tramp: *mut libc::c_void,
|
|
||||||
pub sa_mask: sigset_t,
|
|
||||||
pub sa_flags: libc::c_int,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(any(target_os = "freebsd", 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…
Reference in New Issue
Block a user