]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Merge struct vfsconf detection from configure for DragonFly.
authorJoerg Sonnenberger <joerg@bec.de>
Sat, 2 Jul 2016 08:34:06 +0000 (10:34 +0200)
committerJoerg Sonnenberger <joerg@bec.de>
Sat, 2 Jul 2016 08:34:06 +0000 (10:34 +0200)
CMakeLists.txt
build/cmake/config.h.in

index 66a054a1e0d80ed19d4c172982a43acac5b686e4..648b3341c8f6ba1fe4ecce37974be84ac6bb9e92 100644 (file)
@@ -1274,6 +1274,10 @@ CHECK_FUNCTION_EXISTS(wmemmove HAVE_WMEMMOVE)
 
 CMAKE_POP_CHECK_STATE()        # Restore the state of the variables
 
+CHECK_C_SOURCE_COMPILES(
+  "#include <sys/types.h>\n#include <sys/mount.h>\nint main(void) { struct vfsconf v; return sizeof(v);}"
+  HAVE_STRUCT_VFSCONF)
+
 # Make sure we have the POSIX version of readdir_r, not the
 # older 2-argument version.
 CHECK_C_SOURCE_COMPILES(
index 64f4d4df17897e78c063391e5684cc5d3ca425cf..dccc3023cd06c499550088f28df6c091e8007280 100644 (file)
@@ -923,6 +923,9 @@ typedef uint64_t uintmax_t;
 /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */
 #cmakedefine HAVE_STRUCT_TM___TM_GMTOFF 1
 
+/* Define to 1 if you have `struct vfsconf'. */
+#cmakedefine HAVE_STRUCT_VFSCONF 1
+
 /* Define to 1 if you have the `symlink' function. */
 #cmakedefine HAVE_SYMLINK 1