From 8642e84b9b21c45f2d8551a48d0a2e9eac8a74d9 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Tue, 15 Mar 2022 18:58:59 +0000 Subject: [PATCH] fixing illumos build for couple of structs --- src/unix/solarish/mod.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/unix/solarish/mod.rs b/src/unix/solarish/mod.rs index 068a153267225..9bcbbbeb5be24 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(&self) -> T { + unsafe fn sidata(&self) -> T { *((&self.__data_pad) as *const ::c_int as *const T) } pub unsafe fn si_addr(&self) -> *mut ::c_void {