Skip to content

Commit ae64edd

Browse files
author
Joel Sherrill
committed
libc/include/sys/stat.h: Adjust for RTEMS MIPS
The commit cited below introduced changes which included conditionals strictly on __mips__. This ignored tailoring for any environment on MIPS except that targeted by the author of the change. This patch just fixes this code for RTEMS. commit 467a2bd Author: Jovan Dmitrović <[email protected]> Date: Wed Jun 11 10:11:33 2025 +0200 mips: Implement MIPS HAL and UHI Implement abstract interface for MIPS, including unified hosting interface (UHI). Signed-off-by: Jovan Dmitrović <[email protected]>
1 parent 5d8c71a commit ae64edd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

newlib/libc/include/sys/stat.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct stat
3838
time_t st_atime;
3939
time_t st_mtime;
4040
time_t st_ctime;
41-
#elif defined(__mips__)
41+
#elif defined(__mips__) && !defined(__rtems__)
4242
time_t st_atime;
4343
long st_spare1;
4444
time_t st_mtime;
@@ -60,7 +60,8 @@ struct stat
6060
#endif
6161
};
6262

63-
#if !((defined(__svr4__) && !defined(__PPC__) && !defined(__sun__)) || defined(__mips__))
63+
#if !((defined(__svr4__) && !defined(__PPC__) && !defined(__sun__)) || \
64+
(defined(__mips__) && !defined(__rtems__)))
6465
#define st_atime st_atim.tv_sec
6566
#define st_ctime st_ctim.tv_sec
6667
#define st_mtime st_mtim.tv_sec

0 commit comments

Comments
 (0)