diff options
author | Florian Hartwig <florian.j.hartwig@gmail.com> | 2015-04-03 18:25:24 +0200 |
---|---|---|
committer | Florian Hartwig <florian.j.hartwig@gmail.com> | 2015-04-03 20:55:39 +0200 |
commit | e5ae756203a036aafed472a3e83af6941f546887 (patch) | |
tree | bd56240c7dd9e5e23df6005417905a3fa52198a2 /src/sys/signal.rs | |
parent | 7d48278859cabcf0e08df27e1d5f839a1694fb1f (diff) | |
download | nix-e5ae756203a036aafed472a3e83af6941f546887.zip |
'derive(Copy)' needs Clone now
Diffstat (limited to 'src/sys/signal.rs')
-rw-r--r-- | src/sys/signal.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sys/signal.rs b/src/sys/signal.rs index 5dd974cc..afeb9c6c 100644 --- a/src/sys/signal.rs +++ b/src/sys/signal.rs @@ -96,7 +96,7 @@ pub mod signal { // actually a giant union. Currently we're only interested in these fields, // however. #[repr(C)] - #[derive(Copy)] + #[derive(Clone, Copy)] pub struct siginfo { si_signo: libc::c_int, si_errno: libc::c_int, @@ -117,14 +117,14 @@ pub mod signal { #[repr(C)] #[cfg(target_pointer_width = "32")] - #[derive(Copy)] + #[derive(Clone, Copy)] pub struct sigset_t { __val: [libc::c_ulong; 32], } #[repr(C)] #[cfg(target_pointer_width = "64")] - #[derive(Copy)] + #[derive(Clone, Copy)] pub struct sigset_t { __val: [libc::c_ulong; 16], } @@ -249,7 +249,7 @@ pub mod signal { // This structure has more fields, but we're not all that interested in // them. #[repr(C)] - #[derive(Copy)] + #[derive(Clone, Copy)] pub struct siginfo { pub si_signo: libc::c_int, pub si_errno: libc::c_int, @@ -297,7 +297,7 @@ mod ffi { } } -#[derive(Copy)] +#[derive(Clone, Copy)] pub struct SigSet { sigset: sigset_t } |