Skip to content
Permalink
Browse files

Merge pull request #221 from pstorz/dev/pstorz/master/fix-gfapi-for-f…

…edora30

gfapi_device: detect glfs_ftruncate API change (Fedora 30)
  • Loading branch information...
franku committed Jul 12, 2019
2 parents 613316e + 921a1fc commit 619493dcc4d48c272eb74a75ca6825c050857576
Showing with 437 additions and 427 deletions.
  1. +16 −0 core/cmake/BareosCheckSymbols.cmake
  2. +416 −426 core/src/include/config.h.in
  3. +5 −1 core/src/stored/backends/gfapi_device.h
@@ -47,3 +47,19 @@ CHECK_SYMBOL_EXISTS(rados_ioctx_set_namespace rados/librados.h HAVE_RADOS_NAMES
CHECK_SYMBOL_EXISTS(rados_nobjects_list_open rados/librados.h HAVE_RADOS_NOBJECTS_LIST)
cmake_pop_check_state()


IF(HAVE_GLUSTERFS_API_GLFS_H)
cmake_push_check_state()
set (CMAKE_REQUIRED_LIBRARIES ${GFAPI_LIBRARIES})
check_cxx_source_compiles("
#include <glusterfs/api/glfs.h>
int main(void)
{
/* new glfs_ftruncate() passes two additional args */
return glfs_ftruncate(NULL, 0, NULL, NULL);
}
"
GLFS_FTRUNCATE_HAS_FOUR_ARGS)

endif()
cmake_pop_check_state()

0 comments on commit 619493d

Please sign in to comment.
You can’t perform that action at this time.