project(fuse_xattrs C)
set(FUSE_XATTRS_VERSION_MAJOR 0)
-set(FUSE_XATTRS_VERSION_MINOR 3)
+set(FUSE_XATTRS_VERSION_MINOR 5)
set(BINARY_SIDECAR_EXT \".xattr\")
include (CheckCSourceCompiles)
check_c_source_compiles ("
#include <sys/types.h>
- #include <attr/xattr.h>
+ #include <sys/xattr.h>
int main() { return 1; }
- " HAVE_ATTR_XATTR_H)
-if(NOT HAVE_ATTR_XATTR_H)
- message(FATAL_ERROR "attr/xattr.h not found")
+ " HAVE_SYS_XATTR_H)
+if(NOT HAVE_SYS_XATTR_H)
+ message(FATAL_ERROR "sys/xattr.h not found")
endif()
# set required definitions
add_definitions (-D_FILE_OFFSET_BITS=64)
+add_definitions (-D HAVE_UTIMENSAT=1)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/")
endif(ENABLE_CODECOVERAGE)
set(SOURCE_FILES
+ stringmem.c
fuse_xattrs.c
passthrough.c
binary_storage.c
add_executable(fuse_xattrs ${SOURCE_FILES})
-target_link_libraries (
- fuse_xattrs
- fuse
-)
+if(APPLE)
+ target_link_libraries (
+ fuse_xattrs
+ osxfuse
+ )
+else()
+ target_link_libraries (
+ fuse_xattrs
+ fuse
+ )
+endif()
+
install (TARGETS fuse_xattrs DESTINATION bin)
install (