https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119218

--- Comment #17 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain D Sandoe <ia...@gcc.gnu.org>:

https://gcc.gnu.org/g:f3d07779fdb729c7ee81b8e764921becf8ecf1d0

commit r15-8907-gf3d07779fdb729c7ee81b8e764921becf8ecf1d0
Author: Iain Sandoe <i...@sandoe.co.uk>
Date:   Wed Mar 12 15:04:31 2025 +0000

    libiberty: Append <libgen.h> to AC_CHECK_DECLS [PR119218].

    Darwin and Solaris, at least, provide basename() in libc, but only
    declare it in <libgen.h>.  That library is not one of the set in
    AC_INCLUDES_DEFAULT and so we fail the config test and fall back
    to the libiberty-provided version.  In itself, this is not an
    issue; however, if we include <libgen.h> and libiberty.h in the same
    TU we do then get a decl conflict.

            PR other/119218

    libiberty/ChangeLog:

            * config.in: Regenerate.
            * configure: Regenerate.
            * configure.ac: Append <libgen.h> to AC_INCLUDES_DEFAULT
            when checking for the 'basename' decl.

    Signed-off-by: Iain Sandoe <i...@sandoe.co.uk>

Reply via email to