Index: yaffs/yaffs_guts.h =================================================================== --- yaffs.orig/yaffs_guts.h +++ yaffs/yaffs_guts.h @@ -200,9 +200,12 @@ #else __u32 st_uid; // user ID of owner __u32 st_gid; // group ID of owner - __u32 st_atime; // time of last access - __u32 st_mtime; // time of last modification - __u32 st_ctime; // time of last change +/* + * /usr/include/bits/stat.h defines st_atime, st_mtime, st_ctime + */ + __u32 st_atim; // time of last access + __u32 st_mtim; // time of last modification + __u32 st_ctim; // time of last change #endif // File size applies to files only @@ -349,9 +352,12 @@ #else __u32 st_uid; // user ID of owner __u32 st_gid; // group ID of owner - __u32 st_atime; // time of last access - __u32 st_mtime; // time of last modification - __u32 st_ctime; // time of last change +/* + * /usr/include/bits/stat.h defines st_atime, st_mtime, st_ctime + */ + __u32 st_atim; // time of last access + __u32 st_mtim; // time of last modification + __u32 st_ctim; // time of last change #endif __u32 st_rdev; // device stuff for block and char devices Index: yaffs/utils/mkyaffsimage.c =================================================================== --- yaffs.orig/utils/mkyaffsimage.c +++ yaffs/utils/mkyaffsimage.c @@ -293,9 +293,9 @@ // Regular POSIX. oh->st_uid = SWAP32(oh->st_uid); oh->st_gid = SWAP32(oh->st_gid); - oh->st_atime = SWAP32(oh->st_atime); - oh->st_mtime = SWAP32(oh->st_mtime); - oh->st_ctime = SWAP32(oh->st_ctime); + oh->st_atim = SWAP32(oh->st_atim); + oh->st_mtim = SWAP32(oh->st_mtim); + oh->st_ctim = SWAP32(oh->st_ctim); #endif oh->fileSize = SWAP32(oh->fileSize); // Aiee. An int... signed, at that! @@ -354,9 +354,9 @@ oh->st_uid = s->st_uid; // NCB 12/9/02 oh->st_gid = s->st_uid; oh->st_gid = s->st_gid; - oh->st_atime = s->st_atime; - oh->st_mtime = s->st_mtime; - oh->st_ctime = s->st_ctime; + oh->st_atim = s->st_atime; + oh->st_mtim = s->st_mtime; + oh->st_ctim = s->st_ctime; oh->st_rdev = s->st_rdev; }