From 639c9f49ce70f79ac41876e68acc9bc77b485fd0 Mon Sep 17 00:00:00 2001 From: Chao-ying Fu Date: Sun, 12 Aug 2012 16:22:54 -0700 Subject: [PATCH] MIPS doesn't have __st_ino, so store 0 for this field in p_stat structure Change-Id: Ia9ed9e5b90291e199b0b351eba65d22a6966a1c9 --- .../android/libportable/common/include/stat_portable.h | 5 +++++ 1 file changed, 5 insertions(+) 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;