https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122729
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- #if !defined(HAVE_DECL_BASENAME) || !HAVE_DECL_BASENAME is NOT correct either because then it might conflict with the basename from the headers. This is why I said you need to have the HAVE_* defined correctly before including libiberty.h .
