Eric Blake wrote:
> mkdtemp already contains mingw mkdir neutralization code.
It is not up to date. I'm committing this fix, found while porting
gettext to mingw.
Bruno
2006-05-12 Bruno Haible <[EMAIL PROTECTED]>
* mkdtemp.c [MINGW]: Include <io.h>.
(mkdir): Define using _mkdir.
***************
*** 84,92 ****
#endif
#ifdef __MINGW32__
! /* mingw's mkdir() function has 1 argument, but we pass 2 arguments.
Therefore we have to disable the argument count checking. */
! # define mkdir ((int (*)()) mkdir)
#endif
#if !_LIBC
--- 85,94 ----
#endif
#ifdef __MINGW32__
! # include <io.h>
! /* mingw's _mkdir() function has 1 argument, but we pass 2 arguments.
Therefore we have to disable the argument count checking. */
! # define mkdir ((int (*)()) _mkdir)
#endif
#if !_LIBC