icu4c-4_9_1-mingw-w64-mkdir-compatibility.patch 493 B

123456789101112131415
  1. --- source/tools/toolutil/toolutil.cpp 2012-04-06 00:46:28 +0400
  2. +++ source/tools/toolutil/toolutil.cpp 2012-05-12 09:32:21 +0400
  3. @@ -40,9 +40,11 @@
  4. # include <sys/types.h>
  5. #endif
  6. -/* In MinGW environment, io.h needs to be included for _mkdir() */
  7. +/* In MinGW environment, io.h needs to be included for _mkdir() for
  8. + * the mingw.org toolchain and direct.h for the mingw-w64 toolchain */
  9. #if U_PLATFORM == U_PF_MINGW
  10. #include <io.h>
  11. +#include <direct.h>
  12. #endif
  13. #include <errno.h>