bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot build fstat.c on mingw


From: Bruno Haible
Subject: Re: Cannot build fstat.c on mingw
Date: Sun, 26 Feb 2023 18:17:35 +0100

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 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.

GNU libiconv 1.17 compiles fine for mingw (w64 flavour, as shipped with
Cygwin 2.9.0), for me.

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).

Thanks!

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]