Fix brought over from gettext.
[pspp] / lib / mkdtemp.c
index d8634c3a8dc06ae19b0cabd4d881bfc589dd7c3f..a1be0cd00c534be084010d2ae6d45d2ead9f309a 100644 (file)
 #endif
 
 #ifdef __MINGW32__
-/* mingw's mkdir() function has 1 argument, but we pass 2 arguments.
+# 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)
+# define mkdir ((int (*)()) _mkdir)
 #endif
 
 #if !_LIBC