|
|
@ -335,6 +335,17 @@ if( ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD" )
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
|
|
check_function_exists( getmntinfo HAVE_GETMNTINFO )
|
|
|
|
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_function_exists( getnameinfo HAVE_GETNAMEINFO )
|
|
|
|
check_function_exists( getnameinfo HAVE_GETNAMEINFO )
|
|
|
|
check_function_exists( getpagesize HAVE_GETPAGESIZE )
|
|
|
|
check_function_exists( getpagesize HAVE_GETPAGESIZE )
|
|
|
|
check_function_exists( getpeereid HAVE_GETPEEREID )
|
|
|
|
check_function_exists( getpeereid HAVE_GETPEEREID )
|
|
|
|