@@ -178,7 +178,7 @@ pub struct RuxTimeSpec {
178178}
179179
180180///Rust version for struct stat in ctypes. Represents file status information.
181- #[ cfg( target_arch = "aarch64" ) ]
181+ #[ cfg( any ( target_arch = "aarch64" , target_arch = "riscv64" ) ) ]
182182#[ derive( Default ) ]
183183pub struct RuxStat {
184184 /// Device identifier.
@@ -200,7 +200,7 @@ pub struct RuxStat {
200200 /// Total size, in bytes.
201201 pub st_size : i64 ,
202202 /// Block size for filesystem I/O.
203- pub st_blksize : core:: ffi:: c_long ,
203+ pub st_blksize : core:: ffi:: c_int ,
204204 /// Padding to maintain alignment.
205205 pub __pad2 : core:: ffi:: c_int ,
206206 /// Number of 512B blocks allocated.
@@ -216,7 +216,7 @@ pub struct RuxStat {
216216}
217217
218218///Rust version for struct stat in ctypes. Represents file status information.
219- #[ cfg( any ( target_arch = "x86_64" , target_arch = "riscv64" ) ) ]
219+ #[ cfg( target_arch = "x86_64" ) ]
220220#[ derive( Default ) ]
221221pub struct RuxStat {
222222 /// Device identifier.
@@ -251,7 +251,7 @@ pub struct RuxStat {
251251 pub __unused : [ core:: ffi:: c_long ; 3usize ] ,
252252}
253253
254- #[ cfg( target_arch = "aarch64" ) ]
254+ #[ cfg( any ( target_arch = "aarch64" , target_arch = "riscv64" ) ) ]
255255impl From < VfsNodeAttr > for RuxStat {
256256 fn from ( attr : VfsNodeAttr ) -> Self {
257257 Self {
@@ -284,7 +284,7 @@ impl From<VfsNodeAttr> for RuxStat {
284284 }
285285}
286286
287- #[ cfg( any ( target_arch = "x86_64" , target_arch = "riscv64" ) ) ]
287+ #[ cfg( target_arch = "x86_64" ) ]
288288impl From < VfsNodeAttr > for RuxStat {
289289 fn from ( attr : VfsNodeAttr ) -> Self {
290290 Self {
0 commit comments