From: Christos Zoulas Date: Sat, 8 May 2021 20:07:51 +0000 (-0400) Subject: Catch up with autoconf changes: X-Git-Tag: v3.5.2~19^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=682ba6b50a8ce290ce3091572a9f4eeb93245937;p=thirdparty%2Flibarchive.git Catch up with autoconf changes: HAVE_STRUCT_STATFS HAVE_STRUCT_STATFS_F_IOSIZE --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d8fc3c46..95537fe87 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1421,6 +1421,10 @@ CHECK_C_SOURCE_COMPILES( "#include \n#include \nint main(void) { struct xvfsconf v; return sizeof(v);}" HAVE_STRUCT_XVFSCONF) +CHECK_C_SOURCE_COMPILES( + "#include \n#include \nint main(void) { struct statfs s; return sizeof(s);}" + HAVE_STRUCT_STATFS) + # Make sure we have the POSIX version of readdir_r, not the # older 2-argument version. CHECK_C_SOURCE_COMPILES( @@ -1496,9 +1500,14 @@ CHECK_STRUCT_HAS_MEMBER("struct tm" tm_gmtoff CHECK_STRUCT_HAS_MEMBER("struct tm" __tm_gmtoff "time.h" HAVE_STRUCT_TM___TM_GMTOFF) +IF(HAVE_STRUCT_STATFS) # Check for f_namemax in struct statfs CHECK_STRUCT_HAS_MEMBER("struct statfs" f_namemax "sys/param.h;sys/mount.h" HAVE_STRUCT_STATFS_F_NAMEMAX) +# Check for f_iosize in struct statfs +CHECK_STRUCT_HAS_MEMBER("struct statfs" f_iosize + "sys/param.h;sys/mount.h" HAVE_STRUCT_STATFS_F_IOSIZE) +ENDIF(HAVE_STRUCT_STATFS) # Check for birthtime in struct stat CHECK_STRUCT_HAS_MEMBER("struct stat" st_birthtime