Merge "riscv64's struct stat is the same as arm64's."

This commit is contained in:
Elliott Hughes 2022-10-06 14:41:03 +00:00 committed by Gerrit Code Review
commit 5394de7b05
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@
__BEGIN_DECLS
#if defined(__aarch64__)
#if defined(__aarch64__) || defined(__riscv)
#define __STAT64_BODY \
dev_t st_dev; \
ino_t st_ino; \

View File

@ -69,7 +69,7 @@ static void sys_stat_h() {
STRUCT_MEMBER(struct stat, struct timespec, st_mtim);
STRUCT_MEMBER(struct stat, struct timespec, st_ctim);
#if defined(__BIONIC__)
#if defined(__aarch64__)
#if defined(__aarch64__) || defined(__riscv)
STRUCT_MEMBER(struct stat, int, st_blksize);
#elif defined(__x86_64__)
STRUCT_MEMBER(struct stat, long, st_blksize);