mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
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)
This commit is contained in:
parent
9019baf667
commit
b2d59a3afb
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue