Marc-André Lureau wrote: > --- a/lib/tempname.c > +++ b/lib/tempname.c > @@ -61,7 +61,7 @@ > #if _LIBC > # define struct_stat64 struct stat64 > #else > -# define struct_stat64 struct stat > +# define struct_stat64 orig_struct_stat > # define __gen_tempname gen_tempname > # define __getpid getpid > # define __gettimeofday gettimeofday
If you have to make such a change to lib/tempname.c, the chances are high that gnulib users also will have to adapt their programs. Which would be against the spirit of gnulib: Packages that use gnulib should use the POSIX or glibc API. What is the problem in the first place? Which warning or error did you get? Please also show snippets from the .h files with relevant information. > #define stat as _stat64 I don't see such a #define in my copy of mingw64. Where do you see it? Bruno