This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Adjust nios2 and m68k semihosting for sys/stat.h changes.


On 9/2/19 2:36 AM, Corinna Vinschen wrote:
Hi Sandra,

On Sep  1 17:52, Sandra Loosemore wrote:
Commit 72ff9acad2ab54e80a19ddaec0106065c817e3f6 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 all the fields of struct gdb_stat.

Commit d0651704411d fixes this by only renaming the st_Xtime fields
in struct gdb_stat to st_Xtim.  Maybe that's an option for you, too?
Otherwise we have multiple different names in an otherwise identical
struct...

OK, that works too.  I'll post a V2 patch shortly.

-Sandra


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]