https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61889
--- Comment #26 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Instead of the #undef mkdir you'd IMHO better just use (mkdir) (filename) in the second case. Anyway, if you've posted your patch to gcc-patches, you should be pinging it until it is reviewed. Kai, can you please have a look?