Mingw compiling error

[ 93%] Building CXX object tools/clang/lib/Frontend/CMakeFiles/clangFrontend.dir/ASTConsumers.cpp.obj
cd D:\objs\llvm\eclipse\tools\clang\lib\Frontend && D:\Tools\Building\gcc\bin\g++.exe -D_DEBUG -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -fno-common -Woverloaded-virtual -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -ID:\objs\llvm\eclipse\include -IE:\Downloads\llvm-trunk\include -IE:\Downloads\llvm-trunk\tools\clang\include -ID:\objs\llvm\eclipse\tools\clang\include -o CMakeFiles\clangFrontend.dir\ASTConsumers.cpp.obj -c E:\Downloads\llvm-trunk\tools\clang\lib\Frontend\ASTConsumers.cpp
D:\Tools\Building\cmake\bin\cmake.exe -E cmake_progress_report D:\objs\llvm\eclipse\CMakeFiles 86
[ 94%] Building CXX object tools/clang/lib/Frontend/CMakeFiles/clangFrontend.dir/ASTUnit.cpp.obj
cd D:\objs\llvm\eclipse\tools\clang\lib\Frontend && D:\Tools\Building\gcc\bin\g++.exe -D_DEBUG -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -fno-common -Woverloaded-virtual -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -ID:\objs\llvm\eclipse\include -IE:\Downloads\llvm-trunk\include -IE:\Downloads\llvm-trunk\tools\clang\include -ID:\objs\llvm\eclipse\tools\clang\include -o CMakeFiles\clangFrontend.dir\ASTUnit.cpp.obj -c E:\Downloads\llvm-trunk\tools\clang\lib\Frontend\ASTUnit.cpp
E:\Downloads\llvm-trunk\tools\clang\lib\Frontend\ASTUnit.cpp: In destructor ‘clang::ASTUnit::~ASTUnit()’:
E:\Downloads\llvm-trunk\tools\clang\lib\Frontend\ASTUnit.cpp:30: error: ‘unlink’ was not declared in this scope
mingw32-make[2]: *** [tools/clang/lib/Frontend/CMakeFiles/clangFrontend.dir/ASTUnit.cpp.obj] Error 1
mingw32-make[2]: Leaving directory D:/objs/llvm/eclipse' mingw32-make[1]: *** [tools/clang/lib/Frontend/CMakeFiles/clangFrontend.dir/all] Error 2 mingw32-make[1]: Leaving directory D:/objs/llvm/eclipse’

This should have been fixed, here:

  http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20091012/022511.html

  - Doug