HomeFreeBSD

kldxref: fix bootstrapping on Linux with Clang 16

Description

kldxref: fix bootstrapping on Linux with Clang 16

The glibc fts_open() callback type does not have the second const
qualifier and it appears that Clang 16 errors by default for mismatched
function pointer types. Add an ifdef to handle this case.

(cherry picked from commit 30887c7d48ead8a9151627228244dd3ed95c4c6d)

Details

Provenance
arichardsonAuthored on Jan 2 2024, 7:06 PM
jhbCommitted on Jan 18 2024, 9:31 PM
Parents
rG8ac6f5e39417: kldxref: Appease a Coverity warning
Branches
Unknown
Tags
Unknown