Fix regression in cris-elf caused by sys/stat.h change

This commit is contained in:
Jeff Johnston 2019-08-19 17:46:51 -04:00
parent 7097b05eda
commit f75aa67851
1 changed files with 11 additions and 2 deletions

View File

@ -38,6 +38,15 @@ struct stat
time_t st_atime; time_t st_atime;
time_t st_mtime; time_t st_mtime;
time_t st_ctime; time_t st_ctime;
#elif defined(__cris__)
time_t st_atime;
long st_spare1;
time_t st_mtime;
long st_spare2;
time_t st_ctime;
long st_spare3;
blksize_t st_blksize;
blkcnt_t st_blocks;
#else #else
struct timespec st_atim; struct timespec st_atim;
struct timespec st_mtim; struct timespec st_mtim;
@ -45,12 +54,12 @@ struct stat
blksize_t st_blksize; blksize_t st_blksize;
blkcnt_t st_blocks; blkcnt_t st_blocks;
#if !defined(__rtems__) #if !defined(__rtems__)
long st_spare4[2]; long st_spare4[2];
#endif #endif
#endif #endif
}; };
#if !(defined(__svr4__) && !defined(__PPC__) && !defined(__sun__)) #if !(defined(__svr4__) && !defined(__PPC__) && !defined(__sun__)) && !defined(__cris__)
#define st_atime st_atim.tv_sec #define st_atime st_atim.tv_sec
#define st_ctime st_ctim.tv_sec #define st_ctime st_ctim.tv_sec
#define st_mtime st_mtim.tv_sec #define st_mtime st_mtim.tv_sec