https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119218
--- Comment #12 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Andreas Schwab from comment #11) > There are two other uses of <libgen.h> and all three of them are needed for > dirname, since basename is declared by default. I *think* that given what we just looked at - fixing libiberty's detection of basename() on the platforms that use <libgen.h> to declare it - would mean that there would be no conflict in including <libgen.h> + libiberty.h