diff --git a/CMakeLists.txt b/CMakeLists.txt index 10f49aad88..362d2d667f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -301,7 +301,7 @@ else() if ( UNIX ) include(CheckSymbolExists) - check_symbol_exists( "fts_set" "fts.h" HAVE_FTS ) + check_symbol_exists( "fts_set" "sys/types.h;sys/stat.h;fts.h" HAVE_FTS ) if ( NOT HAVE_FTS ) include ( FindPkgConfig ) pkg_check_modules( MUSL_FTS musl-fts )