summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 1b48407..148884c 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -155,6 +155,20 @@ if ( BUILD_KSIM )
check_include_file( "sys/loadavg.h" HAVE_SYS_LOADAVG_H )
check_function_exists( getloadavg HAVE_GETLOADAVG )
+ check_function_exists( statfs HAVE_STATFS )
+ check_function_exists( statvfs HAVE_STATVFS )
+ check_function_exists( getmntinfo HAVE_GETMNTINFO )
+ if( HAVE_GETMNTINFO )
+ check_cxx_source_compiles("
+ #include <sys/types.h>
+ #include <sys/statvfs.h>
+ int main(){
+ struct statvfs *mntbufp;
+ int flags;
+ return getmntinfo(&mntbufp, flags);
+ }"
+ GETMNTINFO_USES_STATVFS )
+ endif( HAVE_GETMNTINFO )
check_c_source_compiles(
"#include <linux/kernel.h>