From: Joerg Sonnenberger Date: Sat, 2 Jul 2016 08:34:06 +0000 (+0200) Subject: Merge struct vfsconf detection from configure for DragonFly. X-Git-Tag: v3.2.2~41^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fbb6919e6412126daee931196284cc9dcb3372c8;p=thirdparty%2Flibarchive.git Merge struct vfsconf detection from configure for DragonFly. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 66a054a1e..648b3341c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 \n#include \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( diff --git a/build/cmake/config.h.in b/build/cmake/config.h.in index 64f4d4df1..dccc3023c 100644 --- a/build/cmake/config.h.in +++ b/build/cmake/config.h.in @@ -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