Re: [mingw rfc] Add mkdtemp to gdb/gnulib/ [Re: [PATCH v4 14/14] the "compile" command]

Yao Qi
2014-12-15T03:16:11Z

Jan Kratochvil <jan.kratochvil@redhat.com> writes:

> But mingw-w64 64-bit target would build OK (after commenting out the mkdtemp()
> call) before adding the gnulib mkdtemp module. But after the gnulib mkdtemp
> addition there are many errors (attached as the second attachment). It is all
> about
> struct timeval *
> vs.
> struct rpl_timeval *
> but an advice from mingw64 aware hacker would be nice to know what to do.

Hi Jan,
I can reproduce your build failure with x86_64-w64-mingw32-gcc too.
Looks gnulib sys_time module needs update, or maybe we have to use win32
api, such as GetTempPath and GetRandomFileName.

--
Yao (齐尧)