https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78616
--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> --- If I'm reading things right, it looks like libiberty provides an implementation of strndup if it's not available, but it doesn't provide a decl for it.