Change checking which header contains statfs structure.

This commit is contained in:
2021-03-15 02:14:41 +00:00
parent 8bbcebc843
commit 1e0b0109f0

View File

@@ -29,8 +29,8 @@ endif()
include(CheckSymbolExists)
include(CheckStructHasMember)
CHECK_SYMBOL_EXISTS(statfs "sys/statfs.h" HAVE_SYS_STATFS)
CHECK_SYMBOL_EXISTS(statfs "sys/mount.h" HAVE_SYS_MOUNT)
CHECK_SYMBOL_EXISTS("struct statfs" "sys/statfs.h" HAVE_SYS_STATFS)
CHECK_SYMBOL_EXISTS("struct statfs" "sys/mount.h" HAVE_SYS_MOUNT)
# Linux and FreeBSD
if(HAVE_SYS_STATFS)