diff --git a/ndk/sources/android/libportable/common/include/stat_portable.h b/ndk/sources/android/libportable/common/include/stat_portable.h index 61c016c8e..d50291d03 100644 --- a/ndk/sources/android/libportable/common/include/stat_portable.h +++ b/ndk/sources/android/libportable/common/include/stat_portable.h @@ -125,7 +125,12 @@ static inline void stat_ntop(struct stat *n_stat, struct stat_portable *p_stat) { memset(p_stat, '\0', sizeof(struct stat_portable)); p_stat->st_dev = n_stat->st_dev; +#if defined(__mips__) + /* MIPS doesn't have __st_ino */ + p_stat->__st_ino = 0; +#else p_stat->__st_ino = n_stat->__st_ino; +#endif p_stat->st_mode = n_stat->st_mode; p_stat->st_nlink = n_stat->st_nlink; p_stat->st_uid = n_stat->st_uid;