From e3e5bbf93b0db1d0f0739134e4483fe1c8a5bedc Mon Sep 17 00:00:00 2001 From: Valerii Hiora Date: Thu, 11 Dec 2014 14:49:47 +0200 Subject: Fallout of Copy opt-in for non-Linux Based on #22. --- src/sys/signal.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/sys/signal.rs') 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, -- cgit v1.2.3