Merge "MIPS doesn't have __st_ino, so store 0 for this field in p_stat structure"

This commit is contained in:
Andrew Hsieh
2012-08-14 17:10:00 -07:00
committed by android code review

View File

@@ -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)); memset(p_stat, '\0', sizeof(struct stat_portable));
p_stat->st_dev = n_stat->st_dev; 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; p_stat->__st_ino = n_stat->__st_ino;
#endif
p_stat->st_mode = n_stat->st_mode; p_stat->st_mode = n_stat->st_mode;
p_stat->st_nlink = n_stat->st_nlink; p_stat->st_nlink = n_stat->st_nlink;
p_stat->st_uid = n_stat->st_uid; p_stat->st_uid = n_stat->st_uid;