Fix brought over from gettext.
authorBruno Haible <bruno@clisp.org>
Wed, 28 Jun 2006 18:06:12 +0000 (18:06 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 28 Jun 2006 18:06:12 +0000 (18:06 +0000)
lib/ChangeLog
lib/mkdtemp.c

index 9a7894c186e8f3e26adcb58dae8d5973106ea813..27eddb8b2603067fc772b2057f58cdde9b5341ba 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-12  Bruno Haible  <bruno@clisp.org>
+
+        * mkdtemp.c [MINGW]: Include <io.h>.
+        (mkdir): Define using _mkdir.
+
 2006-06-28  Bruno Haible  <bruno@clisp.org>
 
        * wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
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