Skip to content
Snippets Groups Projects
Commit b1144cc9 authored by Josh Triplett's avatar Josh Triplett
Browse files

libc can't use derive(Copy,Clone) because it doesn't work in rustc

parent 6bd95e4f
No related branches found
No related tags found
Loading
......@@ -317,7 +317,6 @@ cfg_if! {
if #[cfg(libc_union)] {
// Internal, for casts to access union fields
#[repr(C)]
#[derive(Copy,Clone)]
struct sifields_sigchld {
si_pid: ::pid_t,
si_uid: ::uid_t,
......@@ -325,6 +324,12 @@ cfg_if! {
si_utime: ::c_long,
si_stime: ::c_long,
}
impl ::Copy for sifields_sigchld {}
impl ::Clone for sifields_sigchld {
fn clone(&self) -> sifields_sigchld {
*self
}
}
// Internal, for casts to access union fields
#[repr(C)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment