diff options
author | David Carlier <devnexen@gmail.com> | 2022-03-15 18:58:59 +0000 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2022-03-15 18:58:59 +0000 |
commit | 8642e84b9b21c45f2d8551a48d0a2e9eac8a74d9 (patch) | |
tree | 3c08f7b4845ca830addd71a0ee1f61d489cb8911 | |
parent | 55cc85ff7f61e4f11b260ecb68b366818dc4bbe0 (diff) | |
download | rust-libc-8642e84b9b21c45f2d8551a48d0a2e9eac8a74d9.tar.gz |
fixing illumos build for couple of structs
-rw-r--r-- | src/unix/solarish/mod.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/unix/solarish/mod.rs b/src/unix/solarish/mod.rs index 068a153267..9bcbbbeb5b 100644 --- a/src/unix/solarish/mod.rs +++ b/src/unix/solarish/mod.rs @@ -1002,8 +1002,8 @@ struct siginfo_fault { trapno: ::c_int, pc: *mut ::caddr_t, } -impl Copy for siginfo_fault {} -impl Clone for siginfo_fault { +impl ::Copy for siginfo_fault {} +impl ::Clone for siginfo_fault { fn clone(&self) -> Self { *self } @@ -1015,8 +1015,8 @@ struct siginfo_cldval { status: ::c_int, stime: ::clock_t, } -impl Copy for siginfo_cldval {} -impl Clone for siginfo_cldval { +impl ::Copy for siginfo_cldval {} +impl ::Clone for siginfo_cldval { fn clone(&self) -> Self { *self } @@ -1029,8 +1029,8 @@ struct siginfo_killval { // Pad out to match the SIGCLD value size _pad: *mut ::c_void, } -impl Copy for siginfo_killval {} -impl Clone for siginfo_killval { +impl ::Copy for siginfo_killval {} +impl ::Clone for siginfo_killval { fn clone(&self) -> Self { *self } @@ -1043,8 +1043,8 @@ struct siginfo_sigcld { ctid: ::ctid_t, zoneid: ::zoneid_t, } -impl Copy for siginfo_sigcld {} -impl Clone for siginfo_sigcld { +impl ::Copy for siginfo_sigcld {} +impl ::Clone for siginfo_sigcld { fn clone(&self) -> Self { *self } @@ -1057,15 +1057,15 @@ struct siginfo_kill { ctid: ::ctid_t, zoneid: ::zoneid_t, } -impl Copy for siginfo_kill {} -impl Clone for siginfo_kill { +impl ::Copy for siginfo_kill {} +impl ::Clone for siginfo_kill { fn clone(&self) -> Self { *self } } impl siginfo_t { - unsafe fn sidata<T: Copy>(&self) -> T { + unsafe fn sidata<T: ::Copy>(&self) -> T { *((&self.__data_pad) as *const ::c_int as *const T) } pub unsafe fn si_addr(&self) -> *mut ::c_void { |