Re: Cannot build fstat.c on mingw

2023-03-10 Thread Reuben Thomas
On Sun, 26 Feb 2023 at 19:17, Bruno Haible wrote: > So, the cause could be that you are using a different version of mingw. > You might not be the only one. Therefore it would be useful if you could > analyze this failure. Then, let's see what is the best way forward (in > Gnulib and in libiconv)

Re: Cannot build fstat.c on mingw

2023-02-26 Thread Bruno Haible
Reuben Thomas wrote: > 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 lo

Cannot build fstat.c on mingw

2023-02-26 Thread Reuben Thomas
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 w