Commits

Mathias Panzenböck  committed 2741321

check for attr/xattr.h and make compile

  • Participants
  • Parent commits 5c9e5fb

Comments (0)

Files changed (2)

File unvpk/include/vpk/coverage.h

 #ifndef VPK_COVERAGE_H
 #define VPK_COVERAGE_H
 
+#include <stdio.h>
+
 #include <string>
 #include <map>
 

File vpkfs/CMakeLists.txt

 	cmake_policy(SET CMP0003 NEW)
 endif()
 
+find_path(XATTR_INCLUDE_DIR attr/xattr.h)
+
+if(XATTR_INCLUDE_DIR)
+	message(STATUS "Found attr/xattr.h")
+else()
+	message(FATAL_ERROR "Could not find attr/xattr.h")
+endif()
+
 find_package(PkgConfig)
 pkg_check_modules(FUSE fuse REQUIRED)
 add_definitions(${FUSE_CFLAGS_OTHER})
 	add_definitions("-DFUSE_USE_VERSION=29")
 endif()
 
-include_directories("../libvpk/include" "include")
+include_directories("../libvpk/include" "include" "${XATTR_INCLUDE_DIR}")
 
 add_executable(vpkfs
 	src/main.cpp