diff options
| author | Jessica Clarke <jrtc27@FreeBSD.org> | 2024-03-16 01:50:21 +0000 |
|---|---|---|
| committer | Jessica Clarke <jrtc27@FreeBSD.org> | 2024-05-02 20:11:52 +0000 |
| commit | 91e0b44c159f71ea3d27297b250bdcd318c0fe89 (patch) | |
| tree | 023b6ea8ea0e1deff03a604bec3d7aeb6c1715c2 | |
| parent | 89342dba7dbead47677ea82522174010697b17bc (diff) | |
kldxref: Fix bootstrapping on macOS with Clang 16 / Apple Clang 15
macOS, like Linux, does not include an outer const qualifier for its
fts_open callback arguments, so -Wincompatible-function-pointer-types
also picks this up and breaks the build now Clang 16 makes it an error
by default. Extend the existing Linux support to fix this.
MFC after: 1 week
(cherry picked from commit 75464941dc17876af2e99ea90c687bd7df873d73)
| -rw-r--r-- | usr.sbin/kldxref/kldxref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/kldxref/kldxref.c b/usr.sbin/kldxref/kldxref.c index c4e65b7e679b..c044b92c7423 100644 --- a/usr.sbin/kldxref/kldxref.c +++ b/usr.sbin/kldxref/kldxref.c @@ -748,7 +748,7 @@ usage(void) } static int -#ifdef __GLIBC__ +#if defined(__GLIBC__) || defined(__APPLE__) compare(const FTSENT **a, const FTSENT **b) #else compare(const FTSENT *const *a, const FTSENT *const *b) |
