Adjust nios2 and m68k semihosting for sys/stat.h changes.
Commit 72ff9acad2
caused st_atime,
st_ctime, and st_mtime to be defined as macros. This collided with
use of these identifiers as field names in struct gdb_stat (which
represents the GDB RSP encoding of struct stat) in libgloss
semihosting support for nios2 and m68k. This patch renames the
affected fields of struct gdb_stat.
Signed-off-by: Sandra Loosemore <sandra@codesourcery.com>
This commit is contained in:
committed by
Corinna Vinschen
parent
7630c77026
commit
fa29288ef1
@@ -106,9 +106,9 @@ __hosted_from_gdb_stat (const struct gdb_stat *gs,
|
||||
s->st_size = SWAP64 (gs->st_size);
|
||||
s->st_blksize = SWAP64 (gs->st_blksize);
|
||||
s->st_blocks = SWAP64 (gs->st_blocks);
|
||||
s->st_atime = SWAP32 (gs->st_atime);
|
||||
s->st_mtime = SWAP32 (gs->st_mtime);
|
||||
s->st_ctime = SWAP32 (gs->st_ctime);
|
||||
s->st_atime = SWAP32 (gs->st_atim);
|
||||
s->st_mtime = SWAP32 (gs->st_mtim);
|
||||
s->st_ctime = SWAP32 (gs->st_ctim);
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user