https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61889
--- Comment #6 from Kai Tietz <ktietz at gcc dot gnu.org> --- Yes, I remember. I didn't comment on it. The following checks aren't ok. '#if !defined(_WIN32)' you should disable those parts *only* if ftw API isn't present. This you should check by a HAVE_FTW_H configure-check-macro. To disable it just because _WIN32 is defined is wrong.