summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibarchive/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-12-22 21:59:14 (GMT)
committerBrad King <brad.king@kitware.com>2011-12-23 21:04:59 (GMT)
commit02d5e40572408efc3733e796dd6a199f4d9ae7f2 (patch)
tree083492d46c8342054288a5a9f799b206e21b3900 /Utilities/cmlibarchive/CMakeLists.txt
parent8b7ee30bf4fd1b4aebc7033dc8dbcbb5f7c88c83 (diff)
downloadCMake-02d5e40572408efc3733e796dd6a199f4d9ae7f2.zip
CMake-02d5e40572408efc3733e796dd6a199f4d9ae7f2.tar.gz
CMake-02d5e40572408efc3733e796dd6a199f4d9ae7f2.tar.bz2
libarchive: Check for 'struct statvfs' member 'f_iosize'
Configure the result as definition HAVE_STRUCT_STATVFS_F_IOSIZE and use the member only if it exists. At least one platform (IRIX) provides struct statvfs without this member.
Diffstat (limited to 'Utilities/cmlibarchive/CMakeLists.txt')
-rw-r--r--Utilities/cmlibarchive/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Utilities/cmlibarchive/CMakeLists.txt b/Utilities/cmlibarchive/CMakeLists.txt
index 463b96c..f341bf2 100644
--- a/Utilities/cmlibarchive/CMakeLists.txt
+++ b/Utilities/cmlibarchive/CMakeLists.txt
@@ -799,6 +799,12 @@ CHECK_STRUCT_MEMBER("struct stat" st_blksize
# Check for st_flags in struct stat (BSD fflags)
CHECK_STRUCT_MEMBER("struct stat" st_flags
"sys/types.h;sys/stat.h" HAVE_STRUCT_STAT_ST_FLAGS)
+
+IF(HAVE_SYS_STATVFS_H)
+ CHECK_STRUCT_MEMBER("struct statvfs" f_iosize
+ "sys/types.h;sys/statvfs.h" HAVE_STRUCT_STATVFS_F_IOSIZE)
+ENDIF()
+
#
#
CHECK_STRUCT_MEMBER("struct tm" tm_sec