aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2019-08-19 17:46:51 -0400
committerJeff Johnston <jjohnstn@redhat.com>2019-08-19 17:46:51 -0400
commitf75aa67851513d546b840bc43a961785a090be5f (patch)
tree673518439526dc409fd2fa9ab00daed56575baf3 /newlib
parent7097b05eda2f8e9058eab4fda8dedacdfb7ffd7f (diff)
downloadnewlib-f75aa67851513d546b840bc43a961785a090be5f.zip
newlib-f75aa67851513d546b840bc43a961785a090be5f.tar.gz
newlib-f75aa67851513d546b840bc43a961785a090be5f.tar.bz2
Fix regression in cris-elf caused by sys/stat.h change
Diffstat (limited to 'newlib')
-rw-r--r--newlib/libc/include/sys/stat.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h
index a4aba28..4092998 100644
--- a/newlib/libc/include/sys/stat.h
+++ b/newlib/libc/include/sys/stat.h
@@ -38,6 +38,15 @@ struct stat
time_t st_atime;
time_t st_mtime;
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
struct timespec st_atim;
struct timespec st_mtim;
@@ -45,12 +54,12 @@ struct stat
blksize_t st_blksize;
blkcnt_t st_blocks;
#if !defined(__rtems__)
- long st_spare4[2];
+ long st_spare4[2];
#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_ctime st_ctim.tv_sec
#define st_mtime st_mtim.tv_sec