am c22d5210: am e26aeb9a: am 268cffa4: Merge "MIPS doesn\'t have __st_ino, so store 0 for this field in p_stat structure"

* commit 'c22d5210c507895d9b7893fa6d0a2fbff2a23ef1':
  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:22:00 -07:00
committed by Android Git Automerger

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));
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;