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.
This commit is contained in:
Brad Smith 2023-11-10 04:04:19 -05:00 committed by Rachael Alexanderson
parent b6b6b0cb89
commit d2867841b1

View file

@ -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 )