--- icu/source/tools/toolutil/toolutil.cpp.orig 2012-02-11 00:08:41.443126312 +0100 +++ icu/source/tools/toolutil/toolutil.cpp 2012-02-11 00:09:22.265903655 +0100 @@ -40,9 +40,11 @@ # include <sys/types.h> #endif -/* In MinGW environment, io.h needs to be included for _mkdir() */ +/* In MinGW environment, io.h needs to be included for _mkdir() for + * the mingw.org toolchain and direct.h for the mingw-w64 toolchain */ #if U_PLATFORM == U_PF_MINGW #include <io.h> +#include <direct.h> #endif #include <errno.h>