From d2867841b1d63fb6822e93d558d9ecc95d00a4fb Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Fri, 10 Nov 2023 04:04:19 -0500 Subject: [PATCH] Fix detection of fts_set on OpenBSD There are some additional headers that are necessary to be able to detect the presence of fts_set. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )