I get an error with compiling:
In file included from fstat.c:52:
stat-time.h: In function ‘get_stat_atime_ns’:
stat-time.h:52:43: error: invalid use of undefined type ‘const struct _stati64’
52 | # define STAT_TIMESPEC(st, st_xtim) ((st)->st_xtim)
and lots more the same.
I came across this when trying to build GNU libiconv 1.17, which seems to use the current version of fstat.c.
--