Skip to content

Commit 8642e84

Browse files
committed
fixing illumos build for couple of structs
1 parent 55cc85f commit 8642e84

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/unix/solarish/mod.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -1002,8 +1002,8 @@ struct siginfo_fault {
10021002
trapno: ::c_int,
10031003
pc: *mut ::caddr_t,
10041004
}
1005-
impl Copy for siginfo_fault {}
1006-
impl Clone for siginfo_fault {
1005+
impl ::Copy for siginfo_fault {}
1006+
impl ::Clone for siginfo_fault {
10071007
fn clone(&self) -> Self {
10081008
*self
10091009
}
@@ -1015,8 +1015,8 @@ struct siginfo_cldval {
10151015
status: ::c_int,
10161016
stime: ::clock_t,
10171017
}
1018-
impl Copy for siginfo_cldval {}
1019-
impl Clone for siginfo_cldval {
1018+
impl ::Copy for siginfo_cldval {}
1019+
impl ::Clone for siginfo_cldval {
10201020
fn clone(&self) -> Self {
10211021
*self
10221022
}
@@ -1029,8 +1029,8 @@ struct siginfo_killval {
10291029
// Pad out to match the SIGCLD value size
10301030
_pad: *mut ::c_void,
10311031
}
1032-
impl Copy for siginfo_killval {}
1033-
impl Clone for siginfo_killval {
1032+
impl ::Copy for siginfo_killval {}
1033+
impl ::Clone for siginfo_killval {
10341034
fn clone(&self) -> Self {
10351035
*self
10361036
}
@@ -1043,8 +1043,8 @@ struct siginfo_sigcld {
10431043
ctid: ::ctid_t,
10441044
zoneid: ::zoneid_t,
10451045
}
1046-
impl Copy for siginfo_sigcld {}
1047-
impl Clone for siginfo_sigcld {
1046+
impl ::Copy for siginfo_sigcld {}
1047+
impl ::Clone for siginfo_sigcld {
10481048
fn clone(&self) -> Self {
10491049
*self
10501050
}
@@ -1057,15 +1057,15 @@ struct siginfo_kill {
10571057
ctid: ::ctid_t,
10581058
zoneid: ::zoneid_t,
10591059
}
1060-
impl Copy for siginfo_kill {}
1061-
impl Clone for siginfo_kill {
1060+
impl ::Copy for siginfo_kill {}
1061+
impl ::Clone for siginfo_kill {
10621062
fn clone(&self) -> Self {
10631063
*self
10641064
}
10651065
}
10661066

10671067
impl siginfo_t {
1068-
unsafe fn sidata<T: Copy>(&self) -> T {
1068+
unsafe fn sidata<T: ::Copy>(&self) -> T {
10691069
*((&self.__data_pad) as *const ::c_int as *const T)
10701070
}
10711071
pub unsafe fn si_addr(&self) -> *mut ::c_void {

0 commit comments

Comments
 (0)