correct the riscv64 stat structs

This commit is contained in:
Laytan
2024-08-21 14:41:23 +02:00
parent 5b22bfa2b7
commit c0125f3192
2 changed files with 2 additions and 40 deletions
+1 -20
View File
@@ -119,7 +119,7 @@ when ODIN_ARCH == .amd64 {
ctime: Time_Spec,
_: [3]uint,
}
} else when ODIN_ARCH == .arm64 {
} else when ODIN_ARCH == .arm64 || ODIN_ARCH == .riscv64 {
_Arch_Stat :: struct {
dev: Dev,
ino: Inode,
@@ -138,25 +138,6 @@ when ODIN_ARCH == .amd64 {
ctime: Time_Spec,
_: [2]u32,
}
} else when ODIN_ARCH == .riscv64 {
_Arch_Stat :: struct {
dev: Dev,
ino: Inode,
mode: Mode,
nlink: u32,
uid: Uid,
gid: Gid,
rdev: Dev,
_: u64,
size: int,
blksize: i32,
_: i32,
blocks: int,
atime: Time_Spec,
mtime: Time_Spec,
ctime: Time_Spec,
_: [3]uint,
}
} else {
_Arch_Stat :: struct {
dev: Dev,