Did these [1] builds errors ever get fixed? I am running into one of them. I am building QEMU in an environment where 'fdopendir' is not present. 'fdopendir' was introduced in POSIX 2008 (and The Open Group Technical Standard, 2006, Extended API Set Part 2.), so it may not be available in some environments where QEMU is built.
[1] http://lists.nongnu.org/archive/html/qemu-devel/2011-12/msg00171.html -- Meador Inge CodeSourcery / Mentor Embedded http://www.mentor.com/embedded-software