HomeFreeBSD

mandoc: fix bootstrapping on Linux with Clang 16

Description

mandoc: fix bootstrapping on Linux with Clang 16

It appears that Clang 16 errors by default for the mismatched function
pointer types that are triggered by the fts callback (since glibc has a
callback type without the second const qualifier).
Fortunately, there is already code to handle glibc inside mandoc, we
just have to edit the checked-in config.h.

Reviewed By: imp, emaste
Differential Revision: https://reviews.freebsd.org/D42999

(cherry picked from commit 0156465c6d11e1ef064d104443047e4146e5b925)

Details

Provenance
arichardsonAuthored on Dec 12 2023, 5:08 AM
jrtc27Committed on May 2 2024, 8:11 PM
Reviewer
imp
Differential Revision
D42999: mandoc: fix bootstrapping on Linux with Clang 16
Parents
rG3f59eb314103: libulog: Make sure ut_line, ut_user, ut_host are terminated.
Branches
Unknown
Tags
Unknown