diff options
author | Valerii Hiora <valerii.hiora@gmail.com> | 2014-12-11 14:49:47 +0200 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2014-12-12 14:07:36 -0800 |
commit | e3e5bbf93b0db1d0f0739134e4483fe1c8a5bedc (patch) | |
tree | 17b066cade77e21d1bec797ce3119bf4d810b776 /src/sys/signal.rs | |
parent | 7c27a173ba2b22e059e8a2a92f070a3853218e09 (diff) | |
download | nix-e3e5bbf93b0db1d0f0739134e4483fe1c8a5bedc.zip |
Fallout of Copy opt-in for non-Linux
Based on #22.
Diffstat (limited to 'src/sys/signal.rs')
-rw-r--r-- | src/sys/signal.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sys/signal.rs b/src/sys/signal.rs index 731eecd0..f3957b56 100644 --- a/src/sys/signal.rs +++ b/src/sys/signal.rs @@ -206,6 +206,7 @@ pub mod signal { use libc; bitflags!( + #[deriving(Copy)] flags SockFlag: libc::c_int { const SA_NOCLDSTOP = 0x0008, const SA_NOCLDWAIT = 0x0020, @@ -249,6 +250,7 @@ pub mod signal { // This structure has more fields, but we're not all that interested in // them. #[repr(C)] + #[deriving(Copy)] pub struct siginfo { pub si_signo: libc::c_int, pub si_errno: libc::c_int, @@ -260,6 +262,7 @@ pub mod signal { #[cfg(any(target_os = "macos", target_os = "ios"))] #[repr(C)] + #[allow(missing_copy_implementations)] pub struct sigaction { pub sa_handler: extern fn(libc::c_int), sa_tramp: *mut libc::c_void, |