Cygwin build problem

I am building Clang in the llvm tools tree on Cygwin and am getting the following error message:-

llvm[4]: Compiling CIndexer.cpp for Debug build (PIC)
/home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp: In member functi
on ‘const llvm::sys::Path& CIndexer::getClangPath()’:
/home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp:64: error: ‘Dl_in
fo’ was not declared in this scope
/home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp:64: error: expect
ed ;' before 'info' /home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp:65: error: 'info' was not declared in this scope /home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp:65: error: 'dladd r' was not declared in this scope /home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp:68: error: 'info' was not declared in this scope make[4]: *** [/home/ang/build/llvm-clang/tools/clang/tools/CIndex/Debug/CIndexer .o] Error 1 make[4]: Leaving directory /home/ang/build/llvm-clang/tools/clang/tools/CIndex’

Its late so I will look in the morning, but if this is familiar to any one, that could be helpful.

Thanks,

Aaron