From f2c1a8f760302cd7ed50c40545b2cb073d7e0677 Mon Sep 17 00:00:00 2001 From: Ben RUBSON Date: Wed, 4 Oct 2017 08:01:51 +0200 Subject: [PATCH] Correctly check struct dirent --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a9ee4cd..983efba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,7 +84,7 @@ check_include_file_cxx (attr/xattr.h HAVE_ATTR_XATTR_H) check_include_file_cxx (sys/xattr.h HAVE_SYS_XATTR_H) include(CheckStructHasMember) -check_struct_has_member(dirent d_type dirent.h HAVE_DIRENT_D_TYPE LANGUAGE CXX) +check_struct_has_member("struct dirent" d_type dirent.h HAVE_DIRENT_D_TYPE LANGUAGE CXX) # Check if xattr functions take extra arguments, as they do on OSX. include (CheckCXXSourceCompiles)