mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-02 22:54:52 +00:00
jevents: 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
This commit is contained in:
parent
ce312ef72d
commit
d8c84215d7
|
@ -1355,7 +1355,7 @@ int main(int argc, char *argv[])
|
|||
#include <fts.h>
|
||||
|
||||
static int
|
||||
#ifdef __GLIBC__
|
||||
#if defined(__GLIBC__) || defined(__APPLE__)
|
||||
fts_compare(const FTSENT **a, const FTSENT **b)
|
||||
#else
|
||||
fts_compare(const FTSENT * const *a, const FTSENT * const *b)
|
||||
|
|
Loading…
Reference in a new issue