While looking into http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24170, I noticed that Classpath is also using readdir_r. There is no reason to use this. Ulrich wrote a blog entry a while back explaining why: http://udrepper.livejournal.com/18555.html I'm not planning to fix this in Classpath, sorry. It should just be a matter of deleting the readdir_r case and configure checks, though. Tom