diff --git a/src/coreclr/gc/unix/configure.cmake b/src/coreclr/gc/unix/configure.cmake index 0cc66c3e4aecea..26930243b3ca96 100644 --- a/src/coreclr/gc/unix/configure.cmake +++ b/src/coreclr/gc/unix/configure.cmake @@ -148,7 +148,7 @@ int main(int argc, char **argv) check_struct_has_member( "struct statfs" f_fstypename - "sys/mount.h" + "sys/types.h;sys/mount.h" HAVE_STATFS_FSTYPENAME) check_struct_has_member( diff --git a/src/coreclr/pal/src/configure.cmake b/src/coreclr/pal/src/configure.cmake index 8b34b774b1cf54..d117b06c7da32a 100644 --- a/src/coreclr/pal/src/configure.cmake +++ b/src/coreclr/pal/src/configure.cmake @@ -630,7 +630,7 @@ endif(CLR_CMAKE_TARGET_APPLE) check_struct_has_member( "struct statfs" f_fstypename - "sys/mount.h" + "sys/types.h;sys/mount.h" HAVE_STATFS_FSTYPENAME) check_struct_has_member( diff --git a/src/native/libs/configure.cmake b/src/native/libs/configure.cmake index eceaa40323140a..5b39e586216f98 100644 --- a/src/native/libs/configure.cmake +++ b/src/native/libs/configure.cmake @@ -203,7 +203,7 @@ check_symbol_exists( check_symbol_exists( getmntinfo - sys/mount.h + "sys/types.h;sys/mount.h" HAVE_MNTINFO) check_symbol_exists( @@ -974,7 +974,7 @@ check_include_files( check_symbol_exists( getpeereid - unistd.h + "unistd.h;sys/types.h;sys/socket.h" HAVE_GETPEEREID) check_symbol_exists(